Permalink
Browse files

Fixed SA1002 (semicolons must be followed by a space)

  • Loading branch information...
tdwright committed Dec 13, 2018
1 parent ef8c00c commit 88d9486f2a95c170b857852ab8475afbd2d636cb
Showing with 5 additions and 3 deletions.
  1. +2 −2 Class1.cs
  2. +3 −1 custom.ruleset
@@ -5,7 +5,7 @@ namespace CodeAnalysersExampleProj
{
public class Class1 {

public int MyProperty {get;set;} // incorrect spacing
public int another_property {get;set;} // incorrect spacing
public int MyProperty {get; set; } // incorrect spacing
public int another_property {get; set; } // incorrect spacing

}}
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Custom Rulset" Description="Custom Rulset" ToolsVersion="14.0">
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<!-- These have been fixed and should be respected -->
<Rule Id="SA1002" Action="Warning" /><!-- Semicolons must be followed by a space -->

<!-- Below have not yet been actioned and are sorted by count -->
<Rule Id="SA1002" Action="None" /><!-- 4 instances -->
<Rule Id="SA1013" Action="None" /><!-- 4 instances -->
<Rule Id="SA1500" Action="None" /><!-- 3 instances -->
<Rule Id="SA1012" Action="None" /><!-- 2 instances -->

0 comments on commit 88d9486

Please sign in to comment.