Skip to content

Commit da4e95e

Browse files
authored
Merge pull request #62 from messerli-informatik-ag/set-sa1131-severity
Set Severity of SA1131 to Info
2 parents ace5686 + 8ac4940 commit da4e95e

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CodeStyle/build/StyleCop.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<Rule Id="SA1128" Action="Error" /><!-- ConstructorInitializerMustBeOnOwnLine -->
7070
<Rule Id="SA1129" Action="Error" /><!-- DoNotUseDefaultValueTypeConstructor -->
7171
<Rule Id="SA1130" Action="Error" /><!-- UseLambdaSyntax -->
72-
<Rule Id="SA1131" Action="Error" /><!-- UseReadableConditions -->
72+
<Rule Id="SA1131" Action="Info" /><!-- UseReadableConditions -->
7373
<Rule Id="SA1132" Action="Error" /><!-- DoNotCombineFields -->
7474
<Rule Id="SA1133" Action="Error" /><!-- DoNotCombineAttributes -->
7575
<Rule Id="SA1134" Action="Error" /><!-- AttributesMustNotShareLine -->

Sandbox/ReadableConditions.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
3+
namespace Sandbox
4+
{
5+
public static class ReadableConditions
6+
{
7+
public static void Conditions()
8+
{
9+
if (10 == Environment.ExitCode)
10+
{
11+
}
12+
13+
if (10 <= Environment.ExitCode && Environment.ExitCode > 20)
14+
{
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)