Closed tpcarman closed 2 years ago
PSScriptAnalyzer results:
``` RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Invoke-AsBuiltReport.VMware.ESXi.ps1 Line : 1418 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Invoke-AsBuiltReport.VMware.ESXi.ps1 Line : 1719 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Invoke-AsBuiltReport.VMware.ESXi.ps1 Line : 1724 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Invoke-AsBuiltReport.VMware.ESXi.ps1 Line : 1724 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Invoke-AsBuiltReport.VMware.ESXi.ps1 Line : 1729 Message : $null should be on the left side of equality comparisons. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Invoke-AsBuiltReport.VMware.ESXi.ps1 Line : 1792 Message : $null should be on the left side of equality comparisons. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Get-RequiredModule.ps1 Line : 18 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Get-RequiredModule.ps1 Line : 22 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidOverwritingBuiltInCmdlets Severity : Warning ScriptName : Get-Uptime.ps1 Line : 1 Message : 'Get-Uptime' is a cmdlet that is included with PowerShell (version core-6.1.0-windows) whose definition should not be overridden RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Get-Uptime.ps1 Line : 6 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSPossibleIncorrectComparisonWithNull Severity : Warning ScriptName : Get-VMHostLicense.ps1 Line : 51 Message : $null should be on the left side of equality comparisons. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Get-VMHostLicense.ps1 Line : 27 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Get-VMHostLicense.ps1 Line : 29 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-Uptime.ps1 Line : 9 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 30 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 37 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 39 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 47 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 48 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 52 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-VMHostLicense.ps1 Line : 59 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-PciDeviceDetail.ps1 Line : 42 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-PciDeviceDetail.ps1 Line : 47 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-PciDeviceDetail.ps1 Line : 54 Message : Line has trailing whitespace RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : Get-PciDeviceDetail.ps1 Line : 78 Message : Line has trailing whitespace ```
Description
Added
Motivation and Context
How Has This Been Tested?
Tested in home lab and multiple production environments
Screenshots (if appropriate):
Types of changes
Checklist: