Skip to content

Commit 1641008

Browse files
author
Kapil Borle
committed
Fix rule suppression for AvoidUsingPlainTextForPassword
Rule suppression didn't honor the second parameter because the RuleID property in DiagnosticRecord wasn't set to the parameter name.
1 parent ed97c1f commit 1641008

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Rules/AvoidUsingPlainTextForPassword.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
6565
GetName(),
6666
DiagnosticSeverity.Warning,
6767
fileName,
68+
paramName,
6869
suggestedCorrections: fileName == null ? null : GetCorrectionExtent(paramAst));
6970
}
7071
}

0 commit comments

Comments
 (0)