# Install PSScriptAnalyzer
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser
Get-Module -Name PSScriptAnalyzer -ListAvailable
Import-Module -Name PSScriptAnalyzer
# Check PSScriptAnalyzer
Get-Command -Module PSScriptAnalyzer
Get-ScriptAnalyzerRule
#--- Use ScriptAnalyzer
$InvokePATH = & 'C:\Scripts\GoodScript.ps1'
Invoke-ScriptAnalyzer $InvokePATH
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser
Get-Module -Name PSScriptAnalyzer -ListAvailable
Import-Module -Name PSScriptAnalyzer
# Check PSScriptAnalyzer
Get-Command -Module PSScriptAnalyzer
Get-ScriptAnalyzerRule
#--- Use ScriptAnalyzer
$InvokePATH = & 'C:\Scripts\GoodScript.ps1'
Invoke-ScriptAnalyzer $InvokePATH
Комментариев нет:
Отправить комментарий