forked from OCram85/PSCredentialStore
stop raising build error on lint warnings for now (#49)
This commit is contained in:
parent
5983c760b5
commit
739c8cb9b0
@ -40,16 +40,7 @@ function Invoke-Linter () {
|
|||||||
param()
|
param()
|
||||||
|
|
||||||
process {
|
process {
|
||||||
$LintRes = Invoke-ScriptAnalyzer -Path './src/' -Recurse
|
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! =='
|
|
||||||
}
|
|
||||||
#}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user