2018-01-25 01:22:14 +00:00
|
|
|
#!/usr/bin/env pwsh
|
|
|
|
#Requires -Version 6
|
|
|
|
#Requires -Modules PSScriptAnalyzer
|
|
|
|
|
|
|
|
Set-StrictMode -Version 2.0
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
|
|
|
|
$Results = @()
|
|
|
|
|
|
|
|
ForEach ($Path in $Args) {
|
2018-01-31 00:32:32 +00:00
|
|
|
$Results += Invoke-ScriptAnalyzer -Path $Path -Setting $PSScriptRoot/settings.psd1
|
2018-01-25 01:22:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ConvertTo-Json -InputObject $Results
|