Skip to content

Commit 8a71a97

Browse files
author
Quoc Truong
committed
Fix parameters missing in a conditional statement of the rule
1 parent b10fb39 commit 8a71a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rules/AvoidUsingPlainTextForPassword.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
5555
}
5656
}
5757

58-
if (hasPwd && (!paramType.IsArray && (paramType == typeof(String) || paramType == typeof(object)))
59-
|| (paramType.IsArray && (paramType.GetElementType() == typeof(String) || paramType.GetElementType() == typeof(object))))
58+
if (hasPwd && ((!paramType.IsArray && (paramType == typeof(String) || paramType == typeof(object)))
59+
|| (paramType.IsArray && (paramType.GetElementType() == typeof(String) || paramType.GetElementType() == typeof(object)))))
6060
{
6161
yield return new DiagnosticRecord(
6262
String.Format(CultureInfo.CurrentCulture, Strings.AvoidUsingPlainTextForPasswordError, paramAst.Name),

0 commit comments

Comments
 (0)