-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStyleCop.ruleset
31 lines (25 loc) · 1.68 KB
/
StyleCop.ruleset
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
27
28
29
30
31
<?xml version="1.0"?>
<RuleSet Name="StyleCop.Analyzers rules" Description="My style rule preferences" ToolsVersion="14.0">
<!-- <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers."> -->
<!-- <Rule Id="" Action="None" /> -->
<!-- </Rules> -->
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.ReadabilityRules">
<Rule Id="SA1101" Action="None" Description="Prefix local calls with this" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.MaintainabilityRules">
<!-- NOTE: SA1401 is suppressed temporarily and will be addressed in the future -->
<Rule Id="SA1401" Action="None" Description="Fields should be private" />
<Rule Id="SA1407" Action="None" Description="Arithmetic expressions should declare precedence" />
<Rule Id="SA1408" Action="None" Description="Conditional expressions should declare precedence" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.LayoutRules">
<Rule Id="SA1503" Action="None" Description="Braces should not be omitted" />
<Rule Id="SA1519" Action="None" Description="Braces should not be omitted from multi-line child statement" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.DocumentationRules">
<!-- NOTE: Documentation rules should only be temporary as I might document things in the future. -->
<Rule Id="SA1600" Action="None" Description="Elements should be documented" />
<Rule Id="SA1602" Action="None" Description="Enumeration items should be documented" />
<Rule Id="SA1633" Action="None" Description="File should have header" />
</Rules>
</RuleSet>