From adfdd95a27e87b7305ab1c3cda9dec5028bacbeb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:16:09 +0000 Subject: [PATCH 1/2] Initial plan From 8427c20e304bb6c90a344284fe6a10ef5788fcb1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:18:27 +0000 Subject: [PATCH 2/2] docs: add PSScriptAnalyzer local dev section to README Co-authored-by: RomuDeuxfois <53513584+RomuDeuxfois@users.noreply.github.com> --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index fa6de4df..4a5daddb 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,22 @@ Audit is included in CI to block new vulnerabilities. --- +### PSScriptAnalyzer (Windows installer scripts) + +The PowerShell installer scripts under `installer/windows/` are linted with [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer). + +Run the linter locally (requires PowerShell 5.1+ or PowerShell 7+): + +```powershell +.\installer\windows\Run-Lint.ps1 +``` + +The script will automatically install `PSScriptAnalyzer` from the PowerShell Gallery if it is not already present, then analyze every `.ps1` file in `installer/windows/` using the settings defined in `installer/windows/PSScriptAnalyzerSettings.psd1`. + +PSScriptAnalyzer runs in CI — the pipeline will fail if any issues are reported. + +--- + ## 🧪 Tests in CI All tests are run automatically in the CI pipeline using: