We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5bd93 commit 3acf909Copy full SHA for 3acf909
tools/CheckPowershellCompliance.ps1
@@ -91,8 +91,9 @@ function Confirm-Compliance {
91
}
92
93
# Recursively find all *.ps1 files and run Invoke-ScriptAnalyzer against them.
94
- Get-ChildItem -Path . -Recurse -Include '*.ps1' | Invoke-ScriptAnalyzer -Settings $settings
95
- if ($LastExitCode -ne 0) {
+ $problems = $(Get-ChildItem -Path ./custom -Recurse -Include '*.ps1' | Invoke-ScriptAnalyzer -Settings $settings)
+ if ("" -ne $problems) {
96
+ Write-Output $problems
97
Write-Error 'ScriptAnalyzer found (possibly back-compatibility) issues.'
98
exit 5
99
0 commit comments