From 5983c760b561fe24230e69b83cc0c59f6dc23a0d Mon Sep 17 00:00:00 2001 From: OCram85 Date: Fri, 2 Oct 2020 15:52:59 +0200 Subject: [PATCH] disable error on lint warnings --- tools/DroneIO.psm1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/DroneIO.psm1 b/tools/DroneIO.psm1 index 5f626e4..4ab4bb2 100644 --- a/tools/DroneIO.psm1 +++ b/tools/DroneIO.psm1 @@ -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! ==' + } + #} } }