Closed rebelinux closed 1 week ago
PSScriptAnalyzer results:
``` RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 276 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 286 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 496 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 276 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : SharedUtilsFunctions.ps1 Line : 286 Message : $null should be on the left side of equality comparisons. 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 : PSUseOutputTypeCorrectly Severity : Information ScriptName : SharedUtilsFunctions.ps1 Line : 334 Message : The cmdlet 'Get-LocalGroupMemberObj' 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 : 363 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 : 422 Message : Cmdlet 'Get-DomainGroupMember' has positional parameter. Please use named parameters instead of positional parameters when calling a command. ```