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

Commit

Permalink
stop raising build error on lint warnings for now (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
OCram85 authored Oct 2, 2020
1 parent 5983c76 commit 739c8cb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tools/DroneIO.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,7 @@ function Invoke-Linter () {
param()

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! =='
}
#}
Invoke-ScriptAnalyzer -Path './src/' -Recurse
}
}

Expand Down

0 comments on commit 739c8cb

Please sign in to comment.