| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?xml version="1.0" encoding="utf-8"?>
- <RuleSet Name="Autofac Analyzer Rules" Description="Analyzer rules for Autofac assemblies." ToolsVersion="14.0">
- <!-- https://github.com/dotnet/roslyn/blob/master/docs/compilers/Rule%20Set%20Format.md -->
- <IncludeAll Action="Warning" />
- <Rules AnalyzerId="Microsoft.Usage" RuleNamespace="Microsoft.Usage">
- <!-- Implement standard exception constructors - not all of the exception constructors (e.g., parameterless) are desired in our system. -->
- <Rule Id="CA1032" Action="None" />
- <!-- 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. -->
- <Rule Id="CA1716" Action="None" />
- <!-- Implement serialization constructors - false positive when building .NET Core -->
- <Rule Id="CA2229" Action="None" />
- <!-- Mark ISerializable types with SerializableAttribute - false positive when building .NET Core -->
- <Rule Id="CA2237" Action="None" />
- </Rules>
- <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
- <Rule Id="SA0001" Action="None" />
- <Rule Id="SA1008" Action="None" />
- <Rule Id="SA1009" Action="None" />
- <!-- Prefix local calls with this -->
- <Rule Id="SA1101" Action="None" />
- <!-- Use built-in type alias -->
- <Rule Id="SA1121" Action="None" />
- <!-- Use String.Empty instead of "" -->
- <Rule Id="SA1122" Action="None" />
- <!-- Using statements must be inside a namespace -->
- <Rule Id="SA1200" Action="None" />
- <!-- Enforce order of class members by member type -->
- <Rule Id="SA1201" Action="None" />
- <!-- Enforce order of class members by member visibility -->
- <Rule Id="SA1202" Action="None" />
- <!-- Enforce order of constantand static members -->
- <Rule Id="SA1203" Action="None" />
- <!-- Enforce order of static vs. non-static members -->
- <Rule Id="SA1204" Action="None" />
- <!-- Enforce order of readonly vs. non-readonly members -->
- <Rule Id="SA1214" Action="None" />
- <!-- Fields can't start with underscore -->
- <Rule Id="SA1309" Action="None" />
- <Rule Id="SA1401" Action="None" />
- <Rule Id="SA1402" Action="None" />
- <!-- Suppressions must have a justification -->
- <Rule Id="SA1404" Action="None" />
- <Rule Id="SA1407" Action="None" />
- <!-- Use trailing comma in initializers - lots of false positives for enums in StyleCop 1.1.0-beta004 -->
- <Rule Id="SA1413" Action="None" />
- <!-- No single-line statements involving braces -->
- <Rule Id="SA1501" Action="None" />
- <!-- Braces must not be omitted -->
- <Rule Id="SA1503" Action="None" />
- <!-- Element must be documented -->
- <Rule Id="SA1600" Action="None" />
- <!-- Parameter documentation mus be in the right order -->
- <Rule Id="SA1612" Action="None" />
- <!-- Return value must be documented -->
- <Rule Id="SA1615" Action="None" />
- <!-- Generic type parameters must be documented -->
- <Rule Id="SA1618" Action="None" />
- <!-- Don't copy/paste documentation -->
- <Rule Id="SA1625" Action="None" />
- <!-- Exception documentation must not be empty -->
- <Rule Id="SA1627" Action="None" />
- <!-- File must have header -->
- <Rule Id="SA1633" Action="None" />
- <Rule Id="SA1649" Action="None" />
- <!-- Enable XML documentation output-->
- <Rule Id="SA1652" Action="None" />
- </Rules>
- </RuleSet>
|