Skip to content

Commit b8fab37

Browse files
author
Quoc Truong
committed
Fix a bug where rule suppression is turned off after it is applied last
1 parent 5597ceb commit b8fab37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Engine/Helper.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,13 @@ public List<DiagnosticRecord> SuppressRule(string ruleName, Dictionary<string, L
800800
record = diagnostics[recordIndex];
801801
}
802802

803+
// Add all unprocessed records to results
804+
while (recordIndex < diagnostics.Count)
805+
{
806+
results.Add(diagnostics[recordIndex]);
807+
recordIndex += 1;
808+
}
809+
803810
return results;
804811
}
805812

0 commit comments

Comments
 (0)