-
Notifications
You must be signed in to change notification settings - Fork 674
/
xTVS.ruleset
212 lines (207 loc) · 9.03 KB
/
xTVS.ruleset
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="xTVS Coding Rules" Description="xTVS ruleset with low-value tests disabled." ToolsVersion="10.0">
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA2204" Action="None" />
<Rule Id="CA2210" Action="None" /> <!-- mt.exe problem with signing -->
<Rule Id="CA1001" Action="Warning" />
<Rule Id="CA1009" Action="Warning" />
<Rule Id="CA1016" Action="Warning" />
<Rule Id="CA1049" Action="Warning" />
<Rule Id="CA1033" Action="None" /> <!-- Explicit interface implementation on base classes -->
<Rule Id="CA1060" Action="Warning" />
<Rule Id="CA1061" Action="Warning" />
<Rule Id="CA1063" Action="None" /> <!-- Implement IDisposable properly -->
<Rule Id="CA1065" Action="None" /> <!-- Throw from property accessors -->
<Rule Id="CA1301" Action="Warning" />
<Rule Id="CA1400" Action="Warning" />
<Rule Id="CA1401" Action="Warning" />
<Rule Id="CA1403" Action="Warning" />
<Rule Id="CA1404" Action="Warning" />
<Rule Id="CA1405" Action="Warning" />
<Rule Id="CA1410" Action="Warning" />
<Rule Id="CA1415" Action="Warning" />
<Rule Id="CA1821" Action="Warning" />
<Rule Id="CA1900" Action="Warning" />
<Rule Id="CA1901" Action="Warning" />
<Rule Id="CA2002" Action="Warning" />
<Rule Id="CA2100" Action="Warning" />
<Rule Id="CA2101" Action="Warning" />
<Rule Id="CA2108" Action="Warning" />
<Rule Id="CA2111" Action="Warning" />
<Rule Id="CA2112" Action="Warning" />
<Rule Id="CA2114" Action="Warning" />
<Rule Id="CA2116" Action="Warning" />
<Rule Id="CA2117" Action="Warning" />
<Rule Id="CA2122" Action="Warning" />
<Rule Id="CA2123" Action="Warning" />
<Rule Id="CA2124" Action="Warning" />
<Rule Id="CA2126" Action="Warning" />
<Rule Id="CA2131" Action="Warning" />
<Rule Id="CA2132" Action="Warning" />
<Rule Id="CA2133" Action="Warning" />
<Rule Id="CA2134" Action="Warning" />
<Rule Id="CA2137" Action="Warning" />
<Rule Id="CA2138" Action="Warning" />
<Rule Id="CA2140" Action="Warning" />
<Rule Id="CA2141" Action="Warning" />
<Rule Id="CA2146" Action="Warning" />
<Rule Id="CA2147" Action="Warning" />
<Rule Id="CA2149" Action="Warning" />
<Rule Id="CA2200" Action="Warning" />
<Rule Id="CA2202" Action="None" /> <!-- Do not dispose objects multiple times -->
<Rule Id="CA2207" Action="Warning" />
<Rule Id="CA2212" Action="Warning" />
<Rule Id="CA2213" Action="Warning" />
<Rule Id="CA2214" Action="Warning" />
<Rule Id="CA2216" Action="Warning" />
<Rule Id="CA2220" Action="Warning" />
<Rule Id="CA2229" Action="Warning" />
<Rule Id="CA2231" Action="Warning" />
<Rule Id="CA2232" Action="Warning" />
<Rule Id="CA2235" Action="Warning" />
<Rule Id="CA2236" Action="Warning" />
<Rule Id="CA2237" Action="Warning" />
<Rule Id="CA2238" Action="Warning" />
<Rule Id="CA2240" Action="Warning" />
<Rule Id="CA2241" Action="Warning" />
<Rule Id="CA2242" Action="Warning" />
<Rule Id="CA1008" Action="None" /> <!-- Enum should have zero value -->
<Rule Id="CA1013" Action="Warning" />
<Rule Id="CA1303" Action="None" /> <!-- Do not pass literals as localized parameters -->
<Rule Id="CA1308" Action="None" /> <!-- Normalize strings to uppercase -->
<Rule Id="CA1806" Action="None" /> <!-- Do not ignore method results -->
<Rule Id="CA1816" Action="Warning" />
<Rule Id="CA1819" Action="Warning" />
<Rule Id="CA1820" Action="Warning" />
<Rule Id="CA1903" Action="Warning" />
<Rule Id="CA2004" Action="None" /> <!-- Remove calls to GC.KeepAlive -->
<Rule Id="CA2006" Action="Warning" />
<Rule Id="CA2102" Action="Warning" />
<Rule Id="CA2104" Action="None" /> <!-- Do not declare readonly mutable types -->
<Rule Id="CA2105" Action="None" /> <!-- Array fields should not be read only -->
<Rule Id="CA2106" Action="Warning" />
<Rule Id="CA2115" Action="Warning" />
<Rule Id="CA2119" Action="Warning" />
<Rule Id="CA2120" Action="Warning" />
<Rule Id="CA2121" Action="Warning" />
<Rule Id="CA2130" Action="Warning" />
<Rule Id="CA2205" Action="Warning" />
<Rule Id="CA2215" Action="Warning" />
<Rule Id="CA2221" Action="Warning" />
<Rule Id="CA2222" Action="None" /> <!-- Do not decrease inherited member visibility -->
<Rule Id="CA2223" Action="Warning" />
<Rule Id="CA2224" Action="Warning" />
<Rule Id="CA2226" Action="Warning" />
<Rule Id="CA2227" Action="Warning" />
<Rule Id="CA2239" Action="Warning" />
<Rule Id="CA1304" Action="Error" /> <!-- specify CultureInfo -->
<Rule Id="CA1305" Action="None" /> <!-- provide IFormatProvider -->
<Rule Id="CA1307" Action="Error" /> <!-- specify StringComparison -->
<Rule Id="CA1309" Action="Warning" /> <!-- use StringComparison.Ordinal -->
<Rule Id="CA900" Action="Error" />
<Rule Id="CA2001" Action="Error" />
<Rule Id="CA2103" Action="Error" />
<Rule Id="CA2107" Action="Error" />
<Rule Id="CA2109" Action="Error" />
<Rule Id="CA2110" Action="None" />
<Rule Id="CA2118" Action="Error" />
<Rule Id="CA2135" Action="Error" />
<Rule Id="CA2136" Action="Error" />
<Rule Id="CA2139" Action="Error" />
<Rule Id="CA2142" Action="Error" />
<Rule Id="CA2143" Action="Error" />
<Rule Id="CA2144" Action="Error" />
<Rule Id="CA2145" Action="Error" />
<Rule Id="CA2151" Action="Error" />
<Rule Id="CA2153" Action="Error" />
<Rule Id="CA5122" Action="Error" />
<Rule Id="CA5350" Action="Error" />
<Rule Id="CA5351" Action="Error" />
<Rule Id="CA5352" Action="Error" />
<Rule Id="CA5353" Action="Error" />
<Rule Id="CA5354" Action="Error" />
<Rule Id="CA5355" Action="Error" />
<Rule Id="CA5356" Action="Error" />
<Rule Id="CA5357" Action="Error" />
<Rule Id="CA3001" Action="Error" />
<Rule Id="CA3002" Action="None" /> <!-- XSS detection -->
<Rule Id="CA3003" Action="Error" />
<Rule Id="CA3004" Action="Error" />
<Rule Id="CA3005" Action="Error" />
<Rule Id="CA3006" Action="Error" />
<Rule Id="CA3007" Action="Error" />
<Rule Id="CA3008" Action="Error" />
<Rule Id="CA3009" Action="Error" />
<Rule Id="CA3010" Action="Error" />
<Rule Id="CA3011" Action="Error" />
<Rule Id="CA3012" Action="Error" />
<Rule Id="CA3101" Action="None" />
<Rule Id="CA3102" Action="Error" />
<Rule Id="CA3103" Action="Error" />
<Rule Id="CA3104" Action="Error" />
<Rule Id="CA3105" Action="Error" />
<Rule Id="CA3106" Action="Error" />
<Rule Id="CA3107" Action="Error" />
<Rule Id="CA3108" Action="Error" />
<Rule Id="CA3109" Action="Error" />
<Rule Id="CA3110" Action="Error" />
<Rule Id="CA3111" Action="Error" />
<Rule Id="CA3112" Action="Error" />
<Rule Id="CA3113" Action="Error" />
<Rule Id="CA3114" Action="Error" />
<Rule Id="CA3115" Action="Error" />
<Rule Id="CA3116" Action="Error" />
<Rule Id="CA3117" Action="Error" />
<Rule Id="CA3118" Action="Error" />
<Rule Id="CA3119" Action="Error" />
<Rule Id="CA3120" Action="Error" />
<Rule Id="CA3121" Action="Error" />
<Rule Id="CA3122" Action="Error" />
<Rule Id="CA3123" Action="Error" />
<Rule Id="CA3124" Action="Error" />
<Rule Id="CA3125" Action="Error" />
<Rule Id="CA3127" Action="Error" />
<Rule Id="CA3129" Action="Error" />
<Rule Id="CA3130" Action="Error" />
<Rule Id="CA3131" Action="Error" />
<Rule Id="CA3132" Action="Error" />
<Rule Id="CA3133" Action="Error" />
<Rule Id="CA3134" Action="Error" />
<Rule Id="CA3135" Action="Error" />
<Rule Id="CA3137" Action="Error" />
<Rule Id="CA3138" Action="Error" />
<Rule Id="CA3139" Action="Error" />
<Rule Id="CA3140" Action="Error" />
<Rule Id="CA3141" Action="Error" />
<Rule Id="CA3142" Action="Error" />
<Rule Id="CA3143" Action="Error" />
<Rule Id="CA3145" Action="Error" />
<Rule Id="CA3146" Action="Error" />
<Rule Id="CA3147" Action="Error" />
<Rule Id="CA3050" Action="Error" />
<Rule Id="CA3051" Action="None" />
<Rule Id="CA3052" Action="None" />
<Rule Id="CA3053" Action="Error" />
<Rule Id="CA3054" Action="Error" />
<Rule Id="CA3055" Action="Error" />
<Rule Id="CA3056" Action="Error" />
<Rule Id="CA3057" Action="Error" />
<Rule Id="CA3058" Action="Error" />
<Rule Id="CA3059" Action="Error" />
<Rule Id="CA3060" Action="Error" />
<Rule Id="CA3061" Action="Error" />
<Rule Id="CA3062" Action="Error" />
<Rule Id="CA3063" Action="Error" />
<Rule Id="CA3064" Action="Error" />
<Rule Id="CA3065" Action="Error" />
<Rule Id="CA3066" Action="Error" />
<Rule Id="CA3067" Action="Error" />
<Rule Id="CA3068" Action="Error" />
<Rule Id="CA3069" Action="Error" />
<Rule Id="CA3070" Action="Error" />
<Rule Id="CA3071" Action="Error" />
<Rule Id="CA3072" Action="Error" />
<Rule Id="CA3073" Action="Error" />
<Rule Id="CA3074" Action="Error" />
</Rules>
</RuleSet>