81 lines
4.1 KiB
XML
81 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RuleSet Name="Catcher Wong Analyzer Rules" Description="Analyzer rules for Nacos CSharp SDK." ToolsVersion="15.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">
|
|
<!-- Prefix local calls with this -->
|
|
<Rule Id="SA1101" Action="None" />
|
|
<!-- Parameters should be on same line or separate lines -->
|
|
<Rule Id="SA1117" 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" />
|
|
<!-- System using directives should be placed before other using directives -->
|
|
<Rule Id="SA1208" Action="None" />
|
|
<!-- Enforce order of readonly vs. non-readonly members -->
|
|
<Rule Id="SA1214" Action="None" />
|
|
<!-- Using directives should be ordered alphabetically by namespace -->
|
|
<Rule Id="SA1210" Action="None" />
|
|
<!-- Fields can't start with underscore -->
|
|
<Rule Id="SA1309" Action="None" />
|
|
<!-- Fields Name should not contain underscore -->
|
|
<Rule Id="SA1310" Action="None" />
|
|
<!-- Fields should be private -->
|
|
<Rule Id="SA1401" Action="None" />
|
|
<!-- Suppressions must have a justification -->
|
|
<Rule Id="SA1404" 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" />
|
|
<!-- Code should not contain multiple blank lines in a row -->
|
|
<Rule Id="SA1507" Action="None" />
|
|
<!-- File is required to end with a single newline character-->
|
|
<Rule Id="SA1518" 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" />
|
|
<!-- Enable XML documentation output-->
|
|
<Rule Id="SA1652" Action="None" />
|
|
<!-- Do not user regions-->
|
|
<Rule Id="SA1124" Action="None" />
|
|
<!-- Documentation text should end with a period -->
|
|
<Rule Id="SA1629" Action="None" />
|
|
<!-- The property's documentation summary text must begin with: 'Gets or sets' -->
|
|
<Rule Id="SA1623" Action="None" />
|
|
</Rules>
|
|
</RuleSet> |