Skip to content

Commit 259a47e

Browse files
author
Ruben Schmidmeister
authored
Merge pull request #43 from messerli-informatik-ag/relax-single-line-comment-lints
Make single line comment lints warnings instead of errors
2 parents 062a395 + 17b8c71 commit 259a47e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build/StyleCop/Default.ruleset

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Rule Id="SA1002" Action="Error" /> <!-- SemicolonsMustBeSpacedCorrectly -->
1414
<Rule Id="SA1003" Action="Error" /> <!-- SymbolsMustBeSpacedCorrectly -->
1515
<Rule Id="SA1004" Action="Error" /> <!-- DocumentationLinesMustBeginWithSingleSpace -->
16-
<Rule Id="SA1005" Action="Error" /> <!-- SingleLineCommentsMustBeginWithSingleSpace -->
16+
<Rule Id="SA1005" Action="Warning" /> <!-- SingleLineCommentsMustBeginWithSingleSpace -->
1717
<Rule Id="SA1006" Action="Error" /> <!-- PreprocessorKeywordsMustNotBePrecededBySpace -->
1818
<Rule Id="SA1007" Action="Error" /> <!-- OperatorKeywordMustBeFollowedBySpace -->
1919
<Rule Id="SA1008" Action="Error" /> <!-- OpeningParenthesisMustBeSpacedCorrectly -->
@@ -149,10 +149,10 @@
149149
<Rule Id="SA1509" Action="Error" /><!-- OpeningBracesMustNotBePrecededByBlankLine -->
150150
<Rule Id="SA1510" Action="Error" /><!-- ChainedStatementBlocksMustNotBePrecededByBlankLine -->
151151
<Rule Id="SA1511" Action="Error" /><!-- WhileDoFooterMustNotBePrecededByBlankLine -->
152-
<Rule Id="SA1512" Action="Error" /><!-- SingleLineCommentsMustNotBeFollowedByBlankLine -->
152+
<Rule Id="SA1512" Action="Warning" /><!-- SingleLineCommentsMustNotBeFollowedByBlankLine -->
153153
<Rule Id="SA1513" Action="Error" /><!-- ClosingBraceMustBeFollowedByBlankLine -->
154154
<Rule Id="SA1514" Action="Error" /><!-- ElementDocumentationHeaderMustBePrecededByBlankLine -->
155-
<Rule Id="SA1515" Action="Error" /><!-- SingleLineCommentMustBePrecededByBlankLine -->
155+
<Rule Id="SA1515" Action="Warning" /><!-- SingleLineCommentMustBePrecededByBlankLine -->
156156
<Rule Id="SA1516" Action="Error" /><!-- ElementsMustBeSeparatedByBlankLine -->
157157
<Rule Id="SA1517" Action="Error" /><!-- CodeMustNotContainBlankLinesAtStartOfFile -->
158158
<Rule Id="SA1518" Action="Error" /><!-- UseLineEndingsCorrectlyAtEndOfFile -->

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ Initial release
3636

3737
## Unreleased
3838
* Breaking: Treat all nullability warnings as errors.
39+
* Lints involving single line comments have been reduced to warnings to make temporary code commenting easier.

0 commit comments

Comments
 (0)