Skip to content

Commit 1757562

Browse files
committed
SA1138 needs to be disabled when testing SA1137
1 parent de768b7 commit 1757562

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1137UnitTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,12 @@ void ZeroAlignmentMethod()
19221922
await this.VerifyCSharpFixAsync(testCode, fixedCode, cancellationToken: CancellationToken.None).ConfigureAwait(false);
19231923
}
19241924

1925+
/// <inheritdoc/>
1926+
protected override IEnumerable<string> GetDisabledDiagnostics()
1927+
{
1928+
yield return SA1137ElementsShouldHaveTheSameIndentation.SA1138DiagnosticId;
1929+
}
1930+
19251931
/// <inheritdoc/>
19261932
protected override IEnumerable<DiagnosticAnalyzer> GetCSharpDiagnosticAnalyzers()
19271933
{

0 commit comments

Comments
 (0)