Skip to content

Commit 3dd0c8b

Browse files
committed
update action
1 parent 066c787 commit 3dd0c8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ runs:
6565
}
6666
$Config = $ScriptAnalyzer.Config
6767
$ScriptAnalyzer.Results = $files | Invoke-ScriptAnalyzer @Config
68-
$errors = ScriptAnalyzer.Results.Where({($_.Severity -eq 'Error') -or ($_.Severity -eq 'ParseError')})
69-
$warnings = ScriptAnalyzer.Results.Where({$_.Severity -eq 'Warning'})
70-
$info = ScriptAnalyzer.Results.Where({$_.Severity -eq 'Information'})
68+
$errors = $ScriptAnalyzer.Results.Where({($_.Severity -eq 'Error') -or ($_.Severity -eq 'ParseError')})
69+
$warnings = $ScriptAnalyzer.Results.Where({$_.Severity -eq 'Warning'})
70+
$info = $ScriptAnalyzer.Results.Where({$_.Severity -eq 'Information'})
7171
if($errors){
7272
foreach ($e in $errors){
7373
$message = ("file={0},line={1},message{2}" -f $e.ScriptName,$e.Line,$e.Message)

0 commit comments

Comments
 (0)