From e09c0cf5a5b3e060bb90b6299cb48d2ee84c9817 Mon Sep 17 00:00:00 2001 From: Simone Date: Wed, 13 May 2026 18:37:56 +0200 Subject: [PATCH] ci(lint): update PSScriptAnalyzer invocation to use custom settings file --- .gitea/workflows/lint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 410cbba..be2a7a8 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -44,10 +44,11 @@ jobs: Install-Module PSScriptAnalyzer -Scope CurrentUser -Force -AllowClobber } - $paths = @('scripts', 'template', 'runner', 'Setup-Host.ps1') + $settings = Join-Path $PWD 'PSScriptAnalyzerSettings.psd1' + $paths = @('scripts', 'template', 'Setup-Host.ps1') $results = $paths | ForEach-Object { if (Test-Path $_) { - Invoke-ScriptAnalyzer -Path $_ -Recurse -Severity Error,Warning + Invoke-ScriptAnalyzer -Path $_ -Recurse -Settings $settings -Severity Error,Warning } }