Fix missing password #9

This commit is contained in:
Stephen Maunder 2018-06-23 20:10:58 +01:00
parent c08f2732d0
commit 54b332f2c0
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,8 @@
@{
Severity=@('Error','Warning')
# IncludeRules = @()
ExcludeRules = @(
'PSAvoidUsingUserNameAndPassWordParams',
'PSAvoidUsingPlainTextForPassword'
)
}

View file

@ -70,6 +70,8 @@ function New-User() {
[parameter(mandatory = $true)]
[string]$userName,
[string]$password,
[string]$jobTitle,
[string]$email,

View file

@ -193,7 +193,7 @@ Describe "SnipeitPS" {
}
Context 'PSScriptAnalyzer Rules' {
$analysis = Invoke-ScriptAnalyzer -Path "$moduleRoot" -Recurse
$analysis = Invoke-ScriptAnalyzer -Path "$moduleRoot" -Recurse -Settings "$projectRoot\PSScriptAnalyzerSettings.psd1"
$scriptAnalyzerRules = Get-ScriptAnalyzerRule
forEach ($rule in $scriptAnalyzerRules)