disable error on lint warnings
This commit is contained in:
parent
045adbf647
commit
5983c760b5
@ -41,15 +41,15 @@ function Invoke-Linter () {
|
|||||||
|
|
||||||
process {
|
process {
|
||||||
$LintRes = Invoke-ScriptAnalyzer -Path './src/' -Recurse
|
$LintRes = Invoke-ScriptAnalyzer -Path './src/' -Recurse
|
||||||
if (-not ($Env:CI_COMMIT_MESSAGE -match 'SkipLint')) {
|
#if (-not ($Env:CI_COMMIT_MESSAGE -match 'SkipLint')) {
|
||||||
if ($LintRes ) {
|
if ($LintRes ) {
|
||||||
$LintRes | Format-List
|
$LintRes | Format-List
|
||||||
Write-Error -Message 'Lint Errors found!' -ErrorAction Stop
|
Write-Error -Message 'Lint Errors found!' -ErrorAction Stop
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Host '== No Lint Errors found! =='
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
Write-Host '== No Lint Errors found! =='
|
||||||
|
}
|
||||||
|
#}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user