Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
disable error on lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OCram85 committed Oct 2, 2020
1 parent 045adbf commit 5983c76
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tools/DroneIO.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ function Invoke-Linter () {

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

Expand Down

0 comments on commit 5983c76

Please sign in to comment.