diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8644cdf..a3511cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,20 +40,8 @@ jobs: "windows/*.psm1", "windows/*.psd1" ) - $settings = @{ - Rules = @{ - PSAvoidUsingEmptyCatchBlock = @{ Enable = $false } - PSAvoidUsingWriteHost = @{ Enable = $false } - PSUseApprovedVerbs = @{ Enable = $false } - PSUseBOMForUnicodeEncodedFile = @{ Enable = $false } - PSUseDeclaredVarsMoreThanAssignments = @{ Enable = $false } - PSUseShouldProcessForStateChangingFunctions = @{ Enable = $false } - PSUseSingularNouns = @{ Enable = $false } - PSUseToExportFieldsInManifest = @{ Enable = $false } - } - } $issues = $targets | ForEach-Object { - Invoke-ScriptAnalyzer -Path $_ -Recurse -Severity Error,Warning -Settings $settings + Invoke-ScriptAnalyzer -Path $_ -Recurse -Severity Error } if ($issues) { $issues | Format-Table -AutoSize