-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathSharpCode.ruleset
More file actions
26 lines (26 loc) · 1.95 KB
/
SharpCode.ruleset
File metadata and controls
26 lines (26 loc) · 1.95 KB
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
<RuleSet Name="Analyzer rules for SharpCode" Description="These rules configure the FxCop and StyleCop analyzers." ToolsVersion="10.0">
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1101" Action="None" /> <!-- Prefix local calls with this -->
<Rule Id="SA1200" Action="None" /> <!-- Using directives must be placed inside the namespace -->
<Rule Id="SA1305" Action="Warning" /> <!-- Field names must not use Hungarian notation -->
<Rule Id="SA1309" Action="None" /> <!-- Field names must not begin with underscore -->
<Rule Id="SA1402" Action="None" /> <!-- File may only contain a single type -->
<Rule Id="SA1503" Action="None" /> <!-- Allow omitting opening and closing braces for single line usage -->
<Rule Id="SA1600" Action="None" /> <!-- All elements must be documented -->
<Rule Id="SA1602" Action="None" /> <!-- Enumeration items must be documented -->
<Rule Id="SA1604" Action="Warning" /> <!-- Elements must have a <summary> documentation -->
<Rule Id="SA1609" Action="None" /> <!-- Properties must have <value> documentation -->
<Rule Id="SA1611" Action="None" /> <!-- Method parameters must be documented -->
<Rule Id="SA1118" Action="None" /> <!-- The parameter spans multiple lines -->
<Rule Id="SA1615" Action="None" /> <!-- Return values should be documented -->
<Rule Id="SA1633" Action="None" /> <!-- Files must have XML header documentation -->
<Rule Id="SA1649" Action="None" /> <!-- File name should match first type name -->
</Rules>
<Rules AnalyzerId="SonarAnalyzer.CSharp" RuleNamespace="SonarAnalyzer.CSharp">
<Rule Id="S1066" Action="None" /> <!-- Collapsible if statements should be merged -->
<Rule Id="S3626" Action="None" /> <!-- Jump statements should not be redundant -->
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp">
<Rule Id="CS8019" Action="Warning" />
</Rules>
</RuleSet>