|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<RuleSet Name="Autofac Analyzer Rules" Description="Analyzer rules for Autofac assemblies." ToolsVersion="14.0"> |
3 | | - <!-- https://github.com/dotnet/roslyn/blob/master/docs/compilers/Rule%20Set%20Format.md --> |
| 2 | +<RuleSet Name="Autofac Analyzer Rules" Description="Analyzer rules for Autofac assemblies." ToolsVersion="16.0"> |
4 | 3 | <IncludeAll Action="Warning" /> |
| 4 | + <Rules AnalyzerId="Microsoft.Usage" RuleNamespace="Microsoft.Usage"> |
| 5 | + <!-- Implement standard exception constructors - not all of the exception constructors (e.g., parameterless) are desired in our system. --> |
| 6 | + <Rule Id="CA1032" Action="None" /> |
| 7 | + <!-- Change names to avoid reserved word overlaps (e.g., Delegate, GetType, etc.) - too many of these in the public API, we'd break if we fixed it. --> |
| 8 | + <Rule Id="CA1716" Action="None" /> |
| 9 | + <!-- Implement serialization constructors - false positive when building .NET Core --> |
| 10 | + <Rule Id="CA2229" Action="None" /> |
| 11 | + <!-- Mark ISerializable types with SerializableAttribute - false positive when building .NET Core --> |
| 12 | + <Rule Id="CA2237" Action="None" /> |
| 13 | + </Rules> |
5 | 14 | <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> |
6 | 15 | <!-- Prefix local calls with this --> |
7 | 16 | <Rule Id="SA1101" Action="None" /> |
|
25 | 34 | <Rule Id="SA1309" Action="None" /> |
26 | 35 | <!-- Suppressions must have a justification --> |
27 | 36 | <Rule Id="SA1404" Action="None" /> |
| 37 | + <!-- Use trailing comma in initializers - lots of false positives for enums in StyleCop 1.1.0-beta004 --> |
| 38 | + <Rule Id="SA1413" Action="None" /> |
28 | 39 | <!-- No single-line statements involving braces --> |
29 | 40 | <Rule Id="SA1501" Action="None" /> |
30 | 41 | <!-- Braces must not be omitted --> |
31 | 42 | <Rule Id="SA1503" Action="None" /> |
32 | | - <!-- Element must be documented --> |
33 | | - <Rule Id="SA1600" Action="None" /> |
34 | 43 | <!-- Parameter documentation mus be in the right order --> |
35 | 44 | <Rule Id="SA1612" Action="None" /> |
36 | 45 | <!-- Return value must be documented --> |
|
0 commit comments