diff --git a/Rules/AvoidUsingPlainTextForPassword.cs b/Rules/AvoidUsingPlainTextForPassword.cs index ffec527f5..4586b27e0 100644 --- a/Rules/AvoidUsingPlainTextForPassword.cs +++ b/Rules/AvoidUsingPlainTextForPassword.cs @@ -37,7 +37,7 @@ public IEnumerable AnalyzeScript(Ast ast, string fileName) // Finds all ParamAsts. IEnumerable paramAsts = ast.FindAll(testAst => testAst is ParameterAst, true); - List passwords = new List() {"Password", "Passphrase", "Auth", "Cred", "Credential"}; + List passwords = new List() {"Password", "Passphrase", "Cred", "Credential"}; // Iterrates all ParamAsts and check if their names are on the list. foreach (ParameterAst paramAst in paramAsts) diff --git a/Tests/Rules/AvoidUsingPlainTextForPassword.tests.ps1 b/Tests/Rules/AvoidUsingPlainTextForPassword.tests.ps1 index 51b2696e0..28f6539c6 100644 --- a/Tests/Rules/AvoidUsingPlainTextForPassword.tests.ps1 +++ b/Tests/Rules/AvoidUsingPlainTextForPassword.tests.ps1 @@ -9,7 +9,7 @@ $noViolations = Invoke-ScriptAnalyzer $directory\AvoidUsingPlainTextForPasswordN Describe "AvoidUsingPlainTextForPassword" { Context "When there are violations" { It "has 3 avoid using plain text for password violations" { - $violations.Count | Should Be 5 + $violations.Count | Should Be 4 } It "has the correct violation message" {