We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6649fd1 commit 7b0e2eaCopy full SHA for 7b0e2ea
1 file changed
.github/workflows/windows-installer-ci.yml
@@ -74,9 +74,16 @@ jobs:
74
75
- name: Lint PowerShell scripts
76
run: |
77
- $results = Invoke-ScriptAnalyzer `
78
- -Path universal-telemetry-software/deploy/install.ps1, universal-telemetry-software/deploy/windows-udp-relay.ps1 `
79
- -Severity Warning,Error -ExcludeRule PSAvoidUsingWriteHost
+ $scripts = @(
+ "universal-telemetry-software/deploy/install.ps1",
+ "universal-telemetry-software/deploy/windows-udp-relay.ps1"
80
+ )
81
+ $results = $scripts | ForEach-Object {
82
+ Invoke-ScriptAnalyzer `
83
+ -Path $_ `
84
+ -Severity Warning,Error `
85
+ -ExcludeRule PSAvoidUsingWriteHost
86
+ }
87
$results | Format-Table -AutoSize
88
$errors = @($results | Where-Object { $_.Severity -eq 'Error' })
89
if ($errors.Count -gt 0) {
0 commit comments