File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
build/pipelines/templates Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 99 displayName: 'Install PSScriptAnalyzer'
1010
1111 - powershell : |
12- $results = try { Invoke-ScriptAnalyzer -Settings ./PSScriptAnalyzerSettings.psd1 -Path ./ –Recurse -ErrorAction Stop } catch { $_.Exception.StackTrace; throw }
12+ $results = try { Invoke-ScriptAnalyzer -Settings ./PSScriptAnalyzerSettings.psd1 -Path ./ –Recurse -ErrorAction Stop } catch { 'Unexpected Error'; $_.Exception.StackTrace; if ($IsCoreCLR) { Get-Error } ; throw }
1313 $results | ForEach-Object { Write-Host "##vso[task.logissue type=$($_.Severity);sourcepath=$($_.ScriptPath);linenumber=$($_.Line);columnnumber=$($_.Column);]$($_.Message)" }
1414
1515 $null = New-Item -Path ..\ -Name ScriptAnalyzer -ItemType Directory -Force
You can’t perform that action at this time.
0 commit comments