StyleCop.ruleset 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0"?>
  2. <RuleSet Name="StyleCop.Analyzers rules" Description="My style rule preferences" ToolsVersion="14.0">
  3. <!-- <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers."> -->
  4. <!-- <Rule Id="" Action="None" /> -->
  5. <!-- </Rules> -->
  6. <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.ReadabilityRules">
  7. <Rule Id="SA1101" Action="None" Description="Prefix local calls with this" />
  8. </Rules>
  9. <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.MaintainabilityRules">
  10. <!-- NOTE: SA1401 is suppressed temporarily and will be addressed in the future -->
  11. <Rule Id="SA1401" Action="None" Description="Fields should be private" />
  12. <Rule Id="SA1407" Action="None" Description="Arithmetic expressions should declare precedence" />
  13. <Rule Id="SA1408" Action="None" Description="Conditional expressions should declare precedence" />
  14. </Rules>
  15. <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.LayoutRules">
  16. <Rule Id="SA1503" Action="None" Description="Braces should not be omitted" />
  17. <Rule Id="SA1519" Action="None" Description="Braces should not be omitted from multi-line child statement" />
  18. </Rules>
  19. <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.DocumentationRules">
  20. <!-- NOTE: Documentation rules should only be temporary as I might document things in the future. -->
  21. <Rule Id="SA1600" Action="None" Description="Elements should be documented" />
  22. <Rule Id="SA1602" Action="None" Description="Enumeration items should be documented" />
  23. <Rule Id="SA1633" Action="None" Description="File should have header" />
  24. </Rules>
  25. </RuleSet>