collapse
26%
W説明%
Number of gendarme violations is 3,69626
テスト結果: 2,682個のテスト中、0個のテストに失敗しました。100
ビルドの安定性: 最近のビルドは失敗してません。100
ビルド履歴
x
 29:25
2.3.0.187
(リビジョン 1693)
 28:08
2.3.0.186
(リビジョン 1691)
 27:47
2.3.0.185
(リビジョン 1689)
 24:04
2.3.0.184
(リビジョン 1688)
 23:38
2.3.0.183
(リビジョン 1686)
 x22:24
2.3.0.182
(リビジョン 1685)
 25:53
2.3.0.181
(リビジョン 1681)
 23:33
2.3.0.180
(リビジョン 1663)
 26:06
2.3.0.179
(リビジョン 1661)
 21:51
2.3.0.178
(リビジョン 1659)
 22:01
2.3.0.177
(リビジョン 1658)
 21:58
2.3.0.176
(リビジョン 1656)
 27:50
2.3.0.175
(リビジョン 1654)
 24:08
2.3.0.174
(リビジョン 1653)
 21:32
2.3.0.173
(リビジョン 1651)
 26:11
2.3.0.172
(リビジョン 1650)
 27:27
2.3.0.171
(リビジョン 1647)
 28:06
2.3.0.170
(リビジョン 1643)
 19:07
2.3.0.169
(リビジョン 1642)
 21:30
2.3.0.168
(リビジョン 1641)
 21:46
2.3.0.167
(リビジョン 1640)
 19:48
2.3.0.166
(リビジョン 1639)
 20:17
2.3.0.165
(リビジョン 1630)
 22:04
2.3.0.164
(リビジョン 1628)
 24:32
2.3.0.163
(リビジョン 1627)
 59:11
2.3.0.162
(リビジョン 1624)
 16:47
2.3.0.158
(リビジョン 1623)
 17:52
2.3.0.157
(リビジョン 1622)
 18:58
2.3.0.156
(リビジョン 1621)
 19:11
2.3.0.155
(リビジョン 1620)

XmlBeanInfo.cs

fxcop   2 violations
269
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'XmlBeanInfo.Create(IXPathNavigable, IXmlNamespaceResolver)' で、パラメーター 'navigable' を使用前に検証してください。
297
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'XmlBeanInfo.Fill(object, IXPathNavigable, IXmlNamespaceResolver)' で、パラメーター 'navigable' を使用前に検証してください。

gendarme   4 violations
88
Medium
Severity Medium
Class AvoidRepetitiveCallsToPropertiesRule
Detail This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
AvoidRepetitiveCallsToPropertiesRule - This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
Solution: Unless a different value is expected from each call, refactor your code to avoid the multiple calls by caching the returned value.
Confidence: Normal
268
High
Severity High
Class CheckParametersNullityInVisibleMethodsRule
Detail A visible method does not check its parameter(s) for null values.
CheckParametersNullityInVisibleMethodsRule - A visible method does not check its parameter(s) for null values.
Solution: Since the caller is unknown you should always verify all of your parameters to protect yourself.
Confidence: Normal
296
High
Severity High
Class CheckParametersNullityInVisibleMethodsRule
Detail A visible method does not check its parameter(s) for null values.
CheckParametersNullityInVisibleMethodsRule - A visible method does not check its parameter(s) for null values.
Solution: Since the caller is unknown you should always verify all of your parameters to protect yourself.
Confidence: Normal
488
Medium
Severity Medium
Class PreferUriOverStringRule
Detail A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
PreferUriOverStringRule - A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
Solution: Use System.Uri in place of System.String, or add an additional overload that takes a System.Uri.
Confidence: Normal

File: XmlBeanInfo.cs Lines 79 to 98
79        /// </summary>
80        /// <param name="type">
81        /// ビーンの型。
82        /// </param>
83        /// <exception cref="ArgumentNullException">
84        /// <paramref name="type"/> が <see langword="null"/> 参照です。
85        /// </exception>
86        /// <exception cref="TypeDeclarationException">
87        /// <paramref name="type"/> に <see cref="XmlBeanAttribute"/> が設定されていません。
Visual Studio 2010
Type Class Description
gendarme AvoidRepetitiveCallsToPropertiesRule This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
88
Type Class Description
gendarme AvoidRepetitiveCallsToPropertiesRule This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
        /// </exception>
89        internal XmlBeanInfo(Type type)
90        {
91            // 引数をチェック
92            if (type == null)
93            {
94                throw new ArgumentNullException("type");
95            }
96
97            this.type = type;
98
 
File: XmlBeanInfo.cs Lines 259 to 279
259        /// </param>
260        /// <param name="namespaceResolver">
261        /// プレフィックスと名前空間の一連の割り当てを解決するための
262        /// <see cref="IXmlNamespaceResolver"/>。
263        /// </param>
264        /// <returns>
265        /// 作成したビーン。
266        /// </returns>
267        public virtual object Create(IXPathNavigable navigable, IXmlNamespaceResolver namespaceResolver)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
268
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
        {
Visual Studio 2010
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
269
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            XPathNavigator navigator = navigable.CreateNavigator();
270            object bean
271                = InstanceCreator.Invoke<object>(
272                    XmlBeanManager.GetBeanType(navigator, type),
273                    BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public,
274                    Type.EmptyTypes,
275                    null);
276
277            FillImpl(bean, navigator, namespaceResolver);
278
279            return bean;
 
File: XmlBeanInfo.cs Lines 287 to 307
287        /// </param>
288        /// <param name="navigable">
289        /// <see cref="IXPathNavigable"/> インターフェイスを実装するオブジェクト。
290        /// </param>
291        /// <param name="namespaceResolver">
292        /// プレフィックスと名前空間の一連の割り当てを解決するための
293        /// <see cref="IXmlNamespaceResolver"/>。
294        /// </param>
295        public virtual void Fill(object bean, IXPathNavigable navigable, IXmlNamespaceResolver namespaceResolver)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
296
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
        {
Visual Studio 2010
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
297
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            FillImpl(bean, navigable.CreateNavigator(), namespaceResolver);
298        }
299
300        /// <summary>
301        /// XML ビーンを元に、XML ライターに書き出します。
302        /// </summary>
303        /// <param name="writer">
304        /// XML ライター。
305        /// </param>
306        /// <param name="bean">
307        /// 対象の XML ビーン。
 
File: XmlBeanInfo.cs Lines 479 to 498
479        /// XML ビーン出力時の設定。
480        /// </param>
481        [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "OK, Same as System.Xml.")]
482        private void SaveImpl(
483            XmlWriter writer,
484            object bean,
485            string name,
486            string namespaceURI,
487            XmlBeanWriterSettings settings)
Visual Studio 2010
Type Class Description
gendarme PreferUriOverStringRule A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
488
Type Class Description
gendarme PreferUriOverStringRule A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
        {
489            if (bean == null && settings.OmitNullBean)
490            {
491                return;
492            }
493
494            writer.WriteStartElement(name, namespaceURI);
495
496            foreach (XmlMemberInfo member in memberInfos)
497            {
498                member.Convert(bean, writer, settings);
 

Sources/CoreLibrary/Sources/Xml/XmlBeanInfo.cs

fxcop   2 violations
Visual Studio 2010269
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'XmlBeanInfo.Create(IXPathNavigable, IXmlNamespaceResolver)' で、パラメーター 'navigable' を使用前に検証してください。
Visual Studio 2010297
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'XmlBeanInfo.Fill(object, IXPathNavigable, IXmlNamespaceResolver)' で、パラメーター 'navigable' を使用前に検証してください。

gendarme   4 violations
Visual Studio 201088
Medium
Severity Medium
Class AvoidRepetitiveCallsToPropertiesRule
Detail This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
AvoidRepetitiveCallsToPropertiesRule - This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
Solution: Unless a different value is expected from each call, refactor your code to avoid the multiple calls by caching the returned value.
Confidence: Normal
Visual Studio 2010268
High
Severity High
Class CheckParametersNullityInVisibleMethodsRule
Detail A visible method does not check its parameter(s) for null values.
CheckParametersNullityInVisibleMethodsRule - A visible method does not check its parameter(s) for null values.
Solution: Since the caller is unknown you should always verify all of your parameters to protect yourself.
Confidence: Normal
Visual Studio 2010296
High
Severity High
Class CheckParametersNullityInVisibleMethodsRule
Detail A visible method does not check its parameter(s) for null values.
CheckParametersNullityInVisibleMethodsRule - A visible method does not check its parameter(s) for null values.
Solution: Since the caller is unknown you should always verify all of your parameters to protect yourself.
Confidence: Normal
Visual Studio 2010488
Medium
Severity Medium
Class PreferUriOverStringRule
Detail A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
PreferUriOverStringRule - A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
Solution: Use System.Uri in place of System.String, or add an additional overload that takes a System.Uri.
Confidence: Normal

File: XmlBeanInfo.cs Lines 79 to 98
79        /// </summary>
80        /// <param name="type">
81        /// ビーンの型。
82        /// </param>
83        /// <exception cref="ArgumentNullException">
84        /// <paramref name="type"/> が <see langword="null"/> 参照です。
85        /// </exception>
86        /// <exception cref="TypeDeclarationException">
87        /// <paramref name="type"/> に <see cref="XmlBeanAttribute"/> が設定されていません。
Visual Studio 2010
Type Class Description
gendarme AvoidRepetitiveCallsToPropertiesRule This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
88
Type Class Description
gendarme AvoidRepetitiveCallsToPropertiesRule This method calls several times into the same properties. This is expensive for virtual properties or when the property cannot be inlined.
        /// </exception>
89        internal XmlBeanInfo(Type type)
90        {
91            // 引数をチェック
92            if (type == null)
93            {
94                throw new ArgumentNullException("type");
95            }
96
97            this.type = type;
98
 
File: XmlBeanInfo.cs Lines 259 to 279
259        /// </param>
260        /// <param name="namespaceResolver">
261        /// プレフィックスと名前空間の一連の割り当てを解決するための
262        /// <see cref="IXmlNamespaceResolver"/>。
263        /// </param>
264        /// <returns>
265        /// 作成したビーン。
266        /// </returns>
267        public virtual object Create(IXPathNavigable navigable, IXmlNamespaceResolver namespaceResolver)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
268
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
        {
Visual Studio 2010
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
269
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            XPathNavigator navigator = navigable.CreateNavigator();
270            object bean
271                = InstanceCreator.Invoke<object>(
272                    XmlBeanManager.GetBeanType(navigator, type),
273                    BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public,
274                    Type.EmptyTypes,
275                    null);
276
277            FillImpl(bean, navigator, namespaceResolver);
278
279            return bean;
 
File: XmlBeanInfo.cs Lines 287 to 307
287        /// </param>
288        /// <param name="navigable">
289        /// <see cref="IXPathNavigable"/> インターフェイスを実装するオブジェクト。
290        /// </param>
291        /// <param name="namespaceResolver">
292        /// プレフィックスと名前空間の一連の割り当てを解決するための
293        /// <see cref="IXmlNamespaceResolver"/>。
294        /// </param>
295        public virtual void Fill(object bean, IXPathNavigable navigable, IXmlNamespaceResolver namespaceResolver)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
296
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
        {
Visual Studio 2010
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
297
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            FillImpl(bean, navigable.CreateNavigator(), namespaceResolver);
298        }
299
300        /// <summary>
301        /// XML ビーンを元に、XML ライターに書き出します。
302        /// </summary>
303        /// <param name="writer">
304        /// XML ライター。
305        /// </param>
306        /// <param name="bean">
307        /// 対象の XML ビーン。
 
File: XmlBeanInfo.cs Lines 479 to 498
479        /// XML ビーン出力時の設定。
480        /// </param>
481        [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "OK, Same as System.Xml.")]
482        private void SaveImpl(
483            XmlWriter writer,
484            object bean,
485            string name,
486            string namespaceURI,
487            XmlBeanWriterSettings settings)
Visual Studio 2010
Type Class Description
gendarme PreferUriOverStringRule A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
488
Type Class Description
gendarme PreferUriOverStringRule A method, parameter, or property with uri, url, or urn in the name is or returns a System.String instead of a System.Uri.
        {
489            if (bean == null && settings.OmitNullBean)
490            {
491                return;
492            }
493
494            writer.WriteStartElement(name, namespaceURI);
495
496            foreach (XmlMemberInfo member in memberInfos)
497            {
498                member.Convert(bean, writer, settings);