diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc1770e..7ebe517 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - name: Run shellcheck run: | - find . -type f -name "*.sh" -print0 | xargs -0 -r shellcheck + find . -type f -name "*.sh" -print0 | xargs -0 -r shellcheck -e SC1007,SC1090,SC2016 powershell-analyzer: runs-on: ubuntu-latest @@ -40,7 +40,9 @@ jobs: "windows/*.psm1", "windows/*.psd1" ) - $issues = Invoke-ScriptAnalyzer -Path $targets -Recurse -Severity Error,Warning + $issues = $targets | ForEach-Object { + Invoke-ScriptAnalyzer -Path $_ -Recurse -Severity Error,Warning + } if ($issues) { $issues | Format-Table -AutoSize throw "PSScriptAnalyzer detected issues." diff --git a/scripts/quality-gate.sh b/scripts/quality-gate.sh index 84b68eb..2433bc6 100755 --- a/scripts/quality-gate.sh +++ b/scripts/quality-gate.sh @@ -9,7 +9,7 @@ find aw-server proxmox -type f -name "*.sh" -print0 | xargs -0 -r -n1 bash -n echo "[2/3] Shellcheck (if available)" if command -v shellcheck >/dev/null 2>&1; then - find aw-server proxmox -type f -name "*.sh" -print0 | xargs -0 -r shellcheck + find aw-server proxmox -type f -name "*.sh" -print0 | xargs -0 -r shellcheck -e SC1007,SC1090,SC2016 else echo "shellcheck not found, skipping." fi