Skip to content

Commit 106507d

Browse files
Chris Martinezcommonsensesoftware
authored andcommitted
Update code analysis tools
1 parent 32ec618 commit 106507d

File tree

2 files changed

+96
-95
lines changed

2 files changed

+96
-95
lines changed

build/code-analysis.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<ItemGroup Label="NuGet">
1919
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" PrivateAssets="All" />
20-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta009" PrivateAssets="All" />
20+
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" PrivateAssets="All" />
2121
</ItemGroup>
2222

2323
</Project>

tools/code-analysis.ruleset

Lines changed: 95 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,98 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RuleSet Name="Microsoft Managed Recommended Rules" Description="These rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. It is recommended to include this rule set in any custom rule set you create for your projects." ToolsVersion="10.0">
3-
<Localization ResourceAssembly="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.dll" ResourceBaseName="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.Localized">
4-
<Name Resource="MinimumRecommendedRules_Name" />
5-
<Description Resource="MinimumRecommendedRules_Description" />
6-
</Localization>
7-
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
8-
<Rule Id="CA1001" Action="Warning" />
9-
<Rule Id="CA1009" Action="Warning" />
10-
<Rule Id="CA1016" Action="Warning" />
11-
<Rule Id="CA1033" Action="Warning" />
12-
<Rule Id="CA1049" Action="Warning" />
13-
<Rule Id="CA1060" Action="Warning" />
14-
<Rule Id="CA1061" Action="Warning" />
15-
<Rule Id="CA1063" Action="Warning" />
16-
<Rule Id="CA1065" Action="Warning" />
17-
<Rule Id="CA1301" Action="Warning" />
18-
<Rule Id="CA1400" Action="Warning" />
19-
<Rule Id="CA1401" Action="Warning" />
20-
<Rule Id="CA1403" Action="Warning" />
21-
<Rule Id="CA1404" Action="Warning" />
22-
<Rule Id="CA1405" Action="Warning" />
23-
<Rule Id="CA1410" Action="Warning" />
24-
<Rule Id="CA1415" Action="Warning" />
25-
<Rule Id="CA1821" Action="Warning" />
26-
<Rule Id="CA1900" Action="Warning" />
27-
<Rule Id="CA1901" Action="Warning" />
28-
<Rule Id="CA2002" Action="Warning" />
29-
<Rule Id="CA2100" Action="Warning" />
30-
<Rule Id="CA2101" Action="Warning" />
31-
<Rule Id="CA2108" Action="Warning" />
32-
<Rule Id="CA2111" Action="Warning" />
33-
<Rule Id="CA2112" Action="Warning" />
34-
<Rule Id="CA2114" Action="Warning" />
35-
<Rule Id="CA2116" Action="Warning" />
36-
<Rule Id="CA2117" Action="Warning" />
37-
<Rule Id="CA2122" Action="Warning" />
38-
<Rule Id="CA2123" Action="Warning" />
39-
<Rule Id="CA2124" Action="Warning" />
40-
<Rule Id="CA2126" Action="Warning" />
41-
<Rule Id="CA2131" Action="Warning" />
42-
<Rule Id="CA2132" Action="Warning" />
43-
<Rule Id="CA2133" Action="Warning" />
44-
<Rule Id="CA2134" Action="Warning" />
45-
<Rule Id="CA2137" Action="Warning" />
46-
<Rule Id="CA2138" Action="Warning" />
47-
<Rule Id="CA2140" Action="Warning" />
48-
<Rule Id="CA2141" Action="Warning" />
49-
<Rule Id="CA2146" Action="Warning" />
50-
<Rule Id="CA2147" Action="Warning" />
51-
<Rule Id="CA2149" Action="Warning" />
52-
<Rule Id="CA2200" Action="Warning" />
53-
<Rule Id="CA2202" Action="Warning" />
54-
<Rule Id="CA2207" Action="Warning" />
55-
<Rule Id="CA2212" Action="Warning" />
56-
<Rule Id="CA2213" Action="Warning" />
57-
<Rule Id="CA2214" Action="Warning" />
58-
<Rule Id="CA2216" Action="Warning" />
59-
<Rule Id="CA2220" Action="Warning" />
60-
<Rule Id="CA2229" Action="Warning" />
61-
<Rule Id="CA2231" Action="Warning" />
62-
<Rule Id="CA2232" Action="Warning" />
63-
<Rule Id="CA2235" Action="Warning" />
64-
<Rule Id="CA2236" Action="Warning" />
65-
<Rule Id="CA2237" Action="Warning" />
66-
<Rule Id="CA2238" Action="Warning" />
67-
<Rule Id="CA2240" Action="Warning" />
68-
<Rule Id="CA2241" Action="Warning" />
69-
<Rule Id="CA2242" Action="Warning" />
70-
<!-- UNDONE: produces false positives in Microsoft.CodeAnalysis.FxCopAnalyzers.2.3.0-beta1 -->
71-
<Rule Id="CA1812" Action="None" />
72-
<Rule Id="CA1823" Action="None" />
73-
</Rules>
74-
<Rules AnalyzerId="Microsoft.AnalyzerPowerPack.CSharp" RuleNamespace="Microsoft.AnalyzerPowerPack.CSharp">
75-
<Rule Id="CA1033" Action="Warning" />
76-
</Rules>
77-
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
78-
<Rule Id="SA1002" Action="None" />
79-
<Rule Id="SA1003" Action="None" />
80-
<Rule Id="SA1008" Action="None" />
81-
<Rule Id="SA1009" Action="None" />
82-
<Rule Id="SA1101" Action="None" />
83-
<Rule Id="SA1127" Action="None" />
84-
<Rule Id="SA1128" Action="None" />
85-
<Rule Id="SA1201" Action="None" />
86-
<Rule Id="SA1202" Action="None" />
87-
<Rule Id="SA1204" Action="None" />
88-
<Rule Id="SA1205" Action="None" />
89-
<Rule Id="SA1208" Action="None" />
90-
<Rule Id="SA1311" Action="None" />
91-
<Rule Id="SA1400" Action="None" />
92-
<Rule Id="SA1502" Action="None" />
93-
<Rule Id="SA1516" Action="None" />
94-
<Rule Id="SA1600" Action="None" />
95-
<Rule Id="SA1633" Action="None" />
96-
</Rules>
3+
<Localization ResourceAssembly="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.dll" ResourceBaseName="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.Localized">
4+
<Name Resource="MinimumRecommendedRules_Name" />
5+
<Description Resource="MinimumRecommendedRules_Description" />
6+
</Localization>
7+
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
8+
<Rule Id="CA1001" Action="Warning" />
9+
<Rule Id="CA1009" Action="Warning" />
10+
<Rule Id="CA1016" Action="Warning" />
11+
<Rule Id="CA1033" Action="Warning" />
12+
<Rule Id="CA1049" Action="Warning" />
13+
<Rule Id="CA1060" Action="Warning" />
14+
<Rule Id="CA1061" Action="Warning" />
15+
<Rule Id="CA1063" Action="Warning" />
16+
<Rule Id="CA1065" Action="Warning" />
17+
<Rule Id="CA1301" Action="Warning" />
18+
<Rule Id="CA1400" Action="Warning" />
19+
<Rule Id="CA1401" Action="Warning" />
20+
<Rule Id="CA1403" Action="Warning" />
21+
<Rule Id="CA1404" Action="Warning" />
22+
<Rule Id="CA1405" Action="Warning" />
23+
<Rule Id="CA1410" Action="Warning" />
24+
<Rule Id="CA1415" Action="Warning" />
25+
<Rule Id="CA1821" Action="Warning" />
26+
<Rule Id="CA1900" Action="Warning" />
27+
<Rule Id="CA1901" Action="Warning" />
28+
<Rule Id="CA2002" Action="Warning" />
29+
<Rule Id="CA2100" Action="Warning" />
30+
<Rule Id="CA2101" Action="Warning" />
31+
<Rule Id="CA2108" Action="Warning" />
32+
<Rule Id="CA2111" Action="Warning" />
33+
<Rule Id="CA2112" Action="Warning" />
34+
<Rule Id="CA2114" Action="Warning" />
35+
<Rule Id="CA2116" Action="Warning" />
36+
<Rule Id="CA2117" Action="Warning" />
37+
<Rule Id="CA2122" Action="Warning" />
38+
<Rule Id="CA2123" Action="Warning" />
39+
<Rule Id="CA2124" Action="Warning" />
40+
<Rule Id="CA2126" Action="Warning" />
41+
<Rule Id="CA2131" Action="Warning" />
42+
<Rule Id="CA2132" Action="Warning" />
43+
<Rule Id="CA2133" Action="Warning" />
44+
<Rule Id="CA2134" Action="Warning" />
45+
<Rule Id="CA2137" Action="Warning" />
46+
<Rule Id="CA2138" Action="Warning" />
47+
<Rule Id="CA2140" Action="Warning" />
48+
<Rule Id="CA2141" Action="Warning" />
49+
<Rule Id="CA2146" Action="Warning" />
50+
<Rule Id="CA2147" Action="Warning" />
51+
<Rule Id="CA2149" Action="Warning" />
52+
<Rule Id="CA2200" Action="Warning" />
53+
<Rule Id="CA2202" Action="Warning" />
54+
<Rule Id="CA2207" Action="Warning" />
55+
<Rule Id="CA2212" Action="Warning" />
56+
<Rule Id="CA2213" Action="Warning" />
57+
<Rule Id="CA2214" Action="Warning" />
58+
<Rule Id="CA2216" Action="Warning" />
59+
<Rule Id="CA2220" Action="Warning" />
60+
<Rule Id="CA2229" Action="Warning" />
61+
<Rule Id="CA2231" Action="Warning" />
62+
<Rule Id="CA2232" Action="Warning" />
63+
<Rule Id="CA2235" Action="Warning" />
64+
<Rule Id="CA2236" Action="Warning" />
65+
<Rule Id="CA2237" Action="Warning" />
66+
<Rule Id="CA2238" Action="Warning" />
67+
<Rule Id="CA2240" Action="Warning" />
68+
<Rule Id="CA2241" Action="Warning" />
69+
<Rule Id="CA2242" Action="Warning" />
70+
<!-- UNDONE: produces false positives in Microsoft.CodeAnalysis.FxCopAnalyzers.2.3.0-beta1 -->
71+
<Rule Id="CA1812" Action="None" />
72+
<Rule Id="CA1823" Action="None" />
73+
</Rules>
74+
<Rules AnalyzerId="Microsoft.AnalyzerPowerPack.CSharp" RuleNamespace="Microsoft.AnalyzerPowerPack.CSharp">
75+
<Rule Id="CA1033" Action="Warning" />
76+
</Rules>
77+
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
78+
<Rule Id="SA1002" Action="None" />
79+
<Rule Id="SA1003" Action="None" />
80+
<Rule Id="SA1008" Action="None" />
81+
<Rule Id="SA1009" Action="None" />
82+
<Rule Id="SA1101" Action="None" />
83+
<Rule Id="SA1127" Action="None" />
84+
<Rule Id="SA1128" Action="None" />
85+
<Rule Id="SA1201" Action="None" />
86+
<Rule Id="SA1202" Action="None" />
87+
<Rule Id="SA1204" Action="None" />
88+
<Rule Id="SA1205" Action="None" />
89+
<Rule Id="SA1208" Action="None" />
90+
<Rule Id="SA1217" Action="None" />
91+
<Rule Id="SA1311" Action="None" />
92+
<Rule Id="SA1400" Action="None" />
93+
<Rule Id="SA1502" Action="None" />
94+
<Rule Id="SA1516" Action="None" />
95+
<Rule Id="SA1600" Action="None" />
96+
<Rule Id="SA1633" Action="None" />
97+
</Rules>
9798
</RuleSet>

0 commit comments

Comments
 (0)