Closed rebelinux closed 4 months ago
PSScriptAnalyzer results:
``` RuleName : PSUseUsingScopeModifierInNewRunspaces Severity : Warning ScriptName : Invoke-AsBuiltReport.Microsoft.Windows.ps1 Line : 122 Message : The variable '$ScriptContent' is not declared within this ScriptBlock, and is missing the 'Using:' scope modifier. RuleName : PSUseUsingScopeModifierInNewRunspaces Severity : Warning ScriptName : Invoke-AsBuiltReport.Microsoft.Windows.ps1 Line : 125 Message : The variable '$ScriptContent' is not declared within this ScriptBlock, and is missing the 'Using:' scope modifier. RuleName : PSAvoidUsingEmptyCatchBlock Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 471 Message : Empty catch block is used. Please use Write-Error or throw statements in catch blocks. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 289 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 299 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 509 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 289 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 299 Message : $null should be on the left side of equality comparisons. RuleName : PSUseOutputTypeCorrectly Severity : Information ScriptName : SharedUtilsFunctions.ps1 Line : 347 Message : The cmdlet 'Get-LocalGroupMember' returns an object of type 'System.String' but this type is not declared in the OutputType attribute. RuleName : PSAvoidUsingPositionalParameters Severity : Information ScriptName : SharedUtilsFunctions.ps1 Line : 376 Message : Cmdlet 'Get-DomainGroupMember' has positional parameter. Please use named parameters instead of positional parameters when calling a command. RuleName : PSAvoidUsingPositionalParameters Severity : Information ScriptName : SharedUtilsFunctions.ps1 Line : 435 Message : Cmdlet 'Get-DomainGroupMember' has positional parameter. Please use named parameters instead of positional parameters when calling a command. ```
Update Release.yml