Update issue templates #57

Merged
OCram85 merged 2 commits from defaultIssue into master 2022-06-28 09:41:53 +02:00
Showing only changes of commit 1471e78af3 - Show all commits

View File

@ -96,8 +96,27 @@ function Invoke-Linter {
Recurse = $true
Settings = './tools/PSScriptAnalyzerSettings.psd1'
ReportSummary = $true
ErrorAction = 'Stop'
}
try {
$AnalyzerResults = Invoke-ScriptAnalyzer @AnalyzerSettings
if ( $AnalyzerResults ) {
$AnalyzerResults | Sort-Object -Property @(
"ScriptName",
"Line"
) | Format-Table @(
"Severity",
"ScriptName",
"Line",
"RuleName",
"Message"
) -AutoSize | Out-String | Write-Verbose -Verbose
}
}
catch {
Write-Error -Message 'PSScriptAnalyzer failer'
Write-Error -Message $_.Exception.Message -ErrorAction 'Stop'
}
Invoke-ScriptAnalyzer @AnalyzerSettings
}
}