Skip to content

Commit

Permalink
Merge branch 'master' into GitHubContents-Set-GitHubContent
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Guardian committed Jun 26, 2020
2 parents 342263f + d855e80 commit 9fc53fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/pipelines/templates/run-staticAnalysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:
displayName: 'Install PSScriptAnalyzer'
- powershell: |
$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 }
$results | ForEach-Object { Write-Host "##vso[task.logissue type=$($_.Severity);sourcepath=$($_.ScriptPath);linenumber=$($_.Line);columnnumber=$($_.Column);]$($_.Message)" }
$null = New-Item -Path ..\ -Name ScriptAnalyzer -ItemType Directory -Force
Expand Down

0 comments on commit 9fc53fa

Please sign in to comment.