Files
Iwan Clement 1808f43f53 first commit
2020-11-03 18:55:20 +01:00

17 lines
494 B
PowerShell
Executable File

# Reason for analyzing
# Scripts are growing
# Human error
# Scripts are to be shared
# Quality standards are recognized as important
Install-Module -Name PSScriptAnalyzer
Get-Command -Module PSScriptAnalyzer
Get-ScriptAnalyzerRule
# PSAvoidUsingCmdletAliases
# PSAvoidGlobalFunctions -- read details
# PSAvoidUsingComputerNameHardcoded -- error
# PSAvoidUsingInvokeExpression -- security hole (code insertion)
Invoke-ScriptAnalyzer -Path ".\03_04-02.ps1"