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)

ServiceErrorHandlerModule.cs

fxcop   3 violations
95
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'ServiceErrorHandlerModule.MarkNeedAuthorization(HttpContext)' で、パラメーター 'context' を使用前に検証してください。
109
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'ServiceErrorHandlerModule.Init(HttpApplication)' で、パラメーター 'context' を使用前に検証してください。
143
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'ServiceErrorHandlerModule.CanRespond(HttpContext)' で、パラメーター 'context' を使用前に検証してください。

gendarme   5 violations
94
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
105
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
120
Medium
Severity Medium
Class WriteStaticFieldFromInstanceMethodRule
Detail This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
WriteStaticFieldFromInstanceMethodRule - This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
Solution: Move initialization to the static constructor or ensure appropriate locking.
Confidence: High
128
High
Severity High
Class OnlyUseDisposeForIDisposableTypesRule
Detail A type has a method named Dispose, but does not implement IDisposable.
OnlyUseDisposeForIDisposableTypesRule - A type has a method named Dispose, but does not implement IDisposable.
Solution: Rename the method or implement IDisposable.
Confidence: High
142
Medium
Severity Medium
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

File: ServiceErrorHandlerModule.cs Lines 85 to 153
85        }
86
87        /// <summary>
88        /// 現在のリクエストに対して認証が必要だとマークします。
89        /// </summary>
90        /// <param name="context">
91        /// コンテキスト。
92        /// </param>
93        public static void MarkNeedAuthorization(HttpContext context)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
94
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 をスローしてください。
95
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            context.Items[Utility.NeedAuthorizationKey] = true;
96        }
97
98        /// <summary>
99        /// モジュールを初期化し、要求を処理できるように準備します。
100        /// </summary>
101        /// <param name="context">
102        /// <see cref="HttpApplication"/>。
103        /// </param>
104        public void Init(HttpApplication context)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
105
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
        {
106            if (FormsAuthenticationModuleOnEnterCalledField != null)
107            {
108                // FormsAuthenticationModule を探索 (複数登録されているのには対応しない)
Visual Studio 2010
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
109
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
                for (int i = 0; i < context.Modules.Count; i++)
110                {
111                    if ((formsAuthenticationModule = context.Modules[i] as FormsAuthenticationModule) != null)
112                    {
113                        context.AuthenticateRequest += AuthenticateRequestHandler;
114                        break;
115                    }
116                }
117            }
118
119            context.Error += ErrorHandler;
Visual Studio 2010
Type Class Description
gendarme WriteStaticFieldFromInstanceMethodRule This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
120
Type Class Description
gendarme WriteStaticFieldFromInstanceMethodRule This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
            registered = true;
121        }
122
123        /// <summary>
124        /// モジュールで使用されるリソース (メモリを除く) を解放します。
125        /// </summary>
126        public void Dispose()
127        {
Visual Studio 2010
Type Class Description
gendarme OnlyUseDisposeForIDisposableTypesRule A type has a method named Dispose, but does not implement IDisposable.
128
Type Class Description
gendarme OnlyUseDisposeForIDisposableTypesRule A type has a method named Dispose, but does not implement IDisposable.
            // AVOID
129        }
130
131        /// <summary>
132        /// HTTP コンテキストに応じてレスポンスを処理するかどうかを取得します。
133        /// </summary>
134        /// <param name="context">
135        /// コンテキスト。
136        /// </param>
137        /// <returns>
138        /// レスポンスを処理する場合は <see langword="true"/>。
139        /// それ以外の場合は <see langword="false"/>。
140        /// </returns>
141        protected virtual bool CanRespond(HttpContext context)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
142
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 をスローしてください。
143
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            return context.Handler is JsonServiceHandler;
144        }
145
146        /// <summary>
147        /// HTTP ステータスコードに応じてレスポンスを処理するかどうかを取得します。
148        /// </summary>
149        /// <param name="httpStatusCode">
150        /// HTTP ステータスコード
151        /// </param>
152        /// <returns>
153        /// レスポンスを処理する場合は <see langword="true"/>。
 

Sources/WebLibrary/Sources/Modules/ServiceErrorHandlerModule.cs

fxcop   3 violations
Visual Studio 201095
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'ServiceErrorHandlerModule.MarkNeedAuthorization(HttpContext)' で、パラメーター 'context' を使用前に検証してください。
Visual Studio 2010109
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'ServiceErrorHandlerModule.Init(HttpApplication)' で、パラメーター 'context' を使用前に検証してください。
Visual Studio 2010143
Medium Low
Severity Medium Low
Class Design#CA1062
Detail 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
パブリック メソッドの引数の検証 - 外部から参照可能なメソッド 'ServiceErrorHandlerModule.CanRespond(HttpContext)' で、パラメーター 'context' を使用前に検証してください。

gendarme   5 violations
Visual Studio 201094
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 2010105
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 2010120
Medium
Severity Medium
Class WriteStaticFieldFromInstanceMethodRule
Detail This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
WriteStaticFieldFromInstanceMethodRule - This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
Solution: Move initialization to the static constructor or ensure appropriate locking.
Confidence: High
Visual Studio 2010128
High
Severity High
Class OnlyUseDisposeForIDisposableTypesRule
Detail A type has a method named Dispose, but does not implement IDisposable.
OnlyUseDisposeForIDisposableTypesRule - A type has a method named Dispose, but does not implement IDisposable.
Solution: Rename the method or implement IDisposable.
Confidence: High
Visual Studio 2010142
Medium
Severity Medium
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

File: ServiceErrorHandlerModule.cs Lines 85 to 153
85        }
86
87        /// <summary>
88        /// 現在のリクエストに対して認証が必要だとマークします。
89        /// </summary>
90        /// <param name="context">
91        /// コンテキスト。
92        /// </param>
93        public static void MarkNeedAuthorization(HttpContext context)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
94
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 をスローしてください。
95
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            context.Items[Utility.NeedAuthorizationKey] = true;
96        }
97
98        /// <summary>
99        /// モジュールを初期化し、要求を処理できるように準備します。
100        /// </summary>
101        /// <param name="context">
102        /// <see cref="HttpApplication"/>。
103        /// </param>
104        public void Init(HttpApplication context)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
105
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
        {
106            if (FormsAuthenticationModuleOnEnterCalledField != null)
107            {
108                // FormsAuthenticationModule を探索 (複数登録されているのには対応しない)
Visual Studio 2010
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
109
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
                for (int i = 0; i < context.Modules.Count; i++)
110                {
111                    if ((formsAuthenticationModule = context.Modules[i] as FormsAuthenticationModule) != null)
112                    {
113                        context.AuthenticateRequest += AuthenticateRequestHandler;
114                        break;
115                    }
116                }
117            }
118
119            context.Error += ErrorHandler;
Visual Studio 2010
Type Class Description
gendarme WriteStaticFieldFromInstanceMethodRule This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
120
Type Class Description
gendarme WriteStaticFieldFromInstanceMethodRule This instance method writes to static fields. This may cause problem with multiple instances in multithreaded applications.
            registered = true;
121        }
122
123        /// <summary>
124        /// モジュールで使用されるリソース (メモリを除く) を解放します。
125        /// </summary>
126        public void Dispose()
127        {
Visual Studio 2010
Type Class Description
gendarme OnlyUseDisposeForIDisposableTypesRule A type has a method named Dispose, but does not implement IDisposable.
128
Type Class Description
gendarme OnlyUseDisposeForIDisposableTypesRule A type has a method named Dispose, but does not implement IDisposable.
            // AVOID
129        }
130
131        /// <summary>
132        /// HTTP コンテキストに応じてレスポンスを処理するかどうかを取得します。
133        /// </summary>
134        /// <param name="context">
135        /// コンテキスト。
136        /// </param>
137        /// <returns>
138        /// レスポンスを処理する場合は <see langword="true"/>。
139        /// それ以外の場合は <see langword="false"/>。
140        /// </returns>
141        protected virtual bool CanRespond(HttpContext context)
Visual Studio 2010
Type Class Description
gendarme CheckParametersNullityInVisibleMethodsRule A visible method does not check its parameter(s) for null values.
142
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 をスローしてください。
143
Type Class Description
fxcop Design#CA1062 外部から参照可能なメソッドに渡された参照引数はすべて、null (VB では Nothing) に対してチェックされる必要があります。適切であれば、引数が null の場合には System.ArgumentNullException をスローしてください。
            return context.Handler is JsonServiceHandler;
144        }
145
146        /// <summary>
147        /// HTTP ステータスコードに応じてレスポンスを処理するかどうかを取得します。
148        /// </summary>
149        /// <param name="httpStatusCode">
150        /// HTTP ステータスコード
151        /// </param>
152        /// <returns>
153        /// レスポンスを処理する場合は <see langword="true"/>。