disable error on lint warnings

This commit is contained in:
OCram85 2020-10-02 15:52:59 +02:00
parent 045adbf647
commit 5983c760b5

View File

@ -41,7 +41,7 @@ function Invoke-Linter () {
process {
$LintRes = Invoke-ScriptAnalyzer -Path './src/' -Recurse
if (-not ($Env:CI_COMMIT_MESSAGE -match 'SkipLint')) {
#if (-not ($Env:CI_COMMIT_MESSAGE -match 'SkipLint')) {
if ($LintRes ) {
$LintRes | Format-List
Write-Error -Message 'Lint Errors found!' -ErrorAction Stop
@ -49,7 +49,7 @@ function Invoke-Linter () {
else {
Write-Host '== No Lint Errors found! =='
}
}
#}
}
}