We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bc09d2 commit d855e80Copy full SHA for d855e80
1 file changed
build/pipelines/templates/run-staticAnalysis.yaml
@@ -9,7 +9,7 @@ steps:
9
displayName: 'Install PSScriptAnalyzer'
10
11
- powershell: |
12
- $results = try { Invoke-ScriptAnalyzer -Settings ./PSScriptAnalyzerSettings.psd1 -Path ./ –Recurse -ErrorAction Stop } catch { $_.Exception.StackTrace; throw }
+ $results = try { Invoke-ScriptAnalyzer -Settings ./PSScriptAnalyzerSettings.psd1 -Path ./ –Recurse -ErrorAction Stop } catch { 'Unexpected Error'; $_.Exception.StackTrace; if ($IsCoreCLR) { Get-Error }; throw }
13
$results | ForEach-Object { Write-Host "##vso[task.logissue type=$($_.Severity);sourcepath=$($_.ScriptPath);linenumber=$($_.Line);columnnumber=$($_.Column);]$($_.Message)" }
14
15
$null = New-Item -Path ..\ -Name ScriptAnalyzer -ItemType Directory -Force
0 commit comments