v3.0.0-B0783预发布2026-04-27
What's changed since pre-release v3.0.0-B0755:
- Engineering:
- Bump vscode engine to v1.110.0.
#3262
- Bump System.CommandLine to 2.0.7.
#3328
- Bump Microsoft.Extensions.Hosting to 10.0.6.
#3313
- Bump NuGet.Protocol to 7.0.3.
#3307
- Bump YamlDotNet to 17.0.1.
#3304
- Bug fixes:
- Fixed version constraint string does not include pre-release flag by @BernieWhite.
#3287
See change log.
v3.0.0-B0755预发布2026-03-27
What's changed since pre-release v3.0.0-B0453:
- New features:
- Experimental: Added support for target scanning in Visual Studio Code by @BernieWhite.
#2641
- To scan a single file, right-click on the file in explorer or an open editor tab and select Run scan on path.
- To scan a folder, right-click on the folder in explorer and select Run scan on path.
- Added support and by default error if rules or input is not found during a run by @BernieWhite.
#1778
- Added options for Execution.NoMatchingRules, Execution.NoValidInput, and Execution.NoValidSources.
- Added support for customizing CSV output columns by @BernieWhite.
#1165
- The Output.CsvDetailedColumns option can be used to customize the columns included in the CSV output format.
- General improvements:
- Reload language server when options change by @BernieWhite.
#2842
- Engineering:
- Important change: Remove legacy log scopes by @BernieWhite.
#2891
- Important change: Remove pass fail streams by @BernieWhite.
#2892
- Important change: Cleanup PreferTargetInfo option by @BernieWhite.
#2994
- Added GitHub Actions support to CLI by @BernieWhite.
#2824
- Added Azure Pipelines support to CLI by @BernieWhite.
#2825
- Bump vscode engine to v1.108.1.
#3188
- Bump Newtonsoft.Json to 13.0.4.
#3161
- Bump System.CommandLine to 2.0.5.
#3267
- Bump NuGet.Protocol to 7.0.1.
#3162
- Bug fixes:
- Fixed path handling issue string is missing the terminator with single quote in source paths by @juan-carlos-diaz.
#2885
- Fixed module path not found with pre-release by @BernieWhite.
#2889
- Fixed empty SARIF run metadata by @BernieWhite.
#2901
See change log.
v3.0.0-B0453预发布2025-03-19
What's changed since pre-release v3.0.0-B0416:
- Engineering:
- Bump System.Drawing.Common to v9.0.3.
#2808
- Bump NuGet.Protocol to v6.13.2.
#2788
- Bump vscode engine to v1.98.0.
#2796
- Bug fixes:
- Fixed custom emitter loaded too late by @BernieWhite.
#2775
- Fixed changed files includes excluded paths by @BernieWhite.
#1465
- Fixed branch ref for working with changes files only examples by @BernieWhite.
#2777
See change log.
v3.0.0-B0416预发布2025-02-08
What's changed since pre-release v3.0.0-B0390:
- New features:
- Added support dependency management in VSCode by @BernieWhite.
#2734
- Code lens in ps-rule.lock.json allows you to upgrade all or specific modules to the latest version.
- The command Upgrade dependency allows you to upgrade all or specific modules to the latest version.
- Added support for enabling/ disabling emitters by @BernieWhite.
#2752
- Emitters can be enabled or disabled by setting the enabled property on each format.
- Additionally, the formats parameter/ input can be set on the command-line and CI to enable emitters for a run.
- Added support for configuring replacement string for each format by @BernieWhite.
#2753
- Replacement strings allow common literal tokens to be replaced when processed by PSRule.
i.e. {{environment}} replaced with dev.
- All built-in emitters now support replacement strings, by configuring the replace property on each format.
- Bug fixes:
- Fixed upgrade dependency could use pre-release version by @BernieWhite.
#2726
See change log.
v3.0.0-B0390预发布2025-01-17
What's changed since pre-release v3.0.0-B0351:
- New features:
- Simplify type conditions for selectors and suppression groups with 2025-01-01 API by @BernieWhite.
#2702
- A precondition type property has been added to selectors and suppression groups.
- This simplifies type conditions that are common used in selectors and suppression groups.
- To use this feature, set the apiVersion to github.com/microsoft/PSRule/2025-01-01.
- Add support for declaring required capabilities in workspaces and modules by @BernieWhite.
#2707
- A module or workspace can declare required capabilities that must be supported by the runtime.
- When a capability is not supported or disabled, the runtime will fail with a specific error.
- This provides a way to ensure that rules execute consistently across environments.
- General improvements:
- Added support for registering custom emitters by @BernieWhite.
#2681
- Engineering:
- Migrate samples into PSRule repository by @BernieWhite.
#2614
- Bug fixes:
- Fixed string formatting of semantic version and constraints by @BernieWhite.
#1828
- Fixed directory handling of input paths without trailing slash by @BernieWhite.
#1842
- Fixed duplicate reasons are reported for the same rule by @BernieWhite.
#2553
- Fixed JSON output format returns exception when no results are produced by @BernieWhite.
#1832
- Fixed path navigation with XML nodes by @BernieWhite.
#1518
- Fixed CLI output format argument not working by @BernieWhite.
#2699
See change log.
v3.0.0-B0351预发布2024-12-16
What's changed since pre-release v3.0.0-B0342:
- General improvements:
- Added an integrity hash to lock file by @BernieWhite.
#2664
- The lock file now includes an integrity hash to ensures the restored module matches originally added module.
See change log.
v3.0.0-B0342预发布2024-12-08
What's changed since pre-release v3.0.0-B0340:
- New features:
- VSCode extension includes PSRule runtime by @BernieWhite.
#1755
- The PSRule runtime is bundled with the VSCode extension.
- Separate installation of the PSRule PowerShell module is no longer required.
- VSCode extension asks to automatically restore modules by @BernieWhite.
#2642
- When opening a workspace, the extension will ask to restore any modules from the lock file.
- Alternatively, running the PSRule: Restore modules command manually will restore modules.
See change log.
v3.0.0-B0340预发布2024-12-06
What's changed since pre-release v3.0.0-B0315:
- New features:
- VSCode extension set to use Microsoft verified publisher name by @BernieWhite.
#2636
- General improvements:
- Expose format options to emitters by @BernieWhite.
#1838
- Added support for overriding options path from the default in VSCode by @BernieWhite.
#2635
- Engineering:
- Migrated VSCode extension into PSRule repository by @BernieWhite.
#2615
- VSCode extension will now sit side-by-side with the other core PSRule components.
- Bug fixes:
- Fixes path filtering of ignored files includes prefixed files by @BernieWhite.
#2624
See change log.
v3.0.0-B0315预发布2024-11-22
What's changed since pre-release v3.0.0-B0275:
- New features:
- Added support for overriding rule severity level by @BernieWhite.
#1180
- Baselines now accept a new spec.overrides.level property which configures severity level overrides.
- Options now accept a new overrides.level properties which configures severity level overrides.
- For example, a rule that generates an Error can be overridden to Warning.
- General improvements:
- Automatically restore missing modules when running CLI by @BernieWhite.
#2552
- Modules are automatically restored unless --no-restore is used with the run command.
- Engineering:
- Bump YamlDotNet to v16.2.0.
#2596
See change log.
v3.0.0-B0275预发布2024-09-25
What's changed since pre-release v3.0.0-B0267:
- New features:
- Allow CLI upgrade command to upgrade a single module by @BernieWhite.
#2551
- A single or specific modules can be upgraded by name when using module upgrade.
- By default, all modules are upgraded.
- Allow CLI to install pre-release modules by @BernieWhite.
#2550
- Add and upgrade pre-release modules with --prerelease.
- Pre-release modules will be restored from the lock file with module restore.
- General improvements:
- Breaking change: Empty version comparison only accepts stable versions by default by @BernieWhite.
#2557
- version and apiVersion assertions only accept stable versions by default for all cases.
- Pre-release versions can be accepted by setting includePrerelease to true.
- Bug fixes:
- Fixed CLI upgrade uses pre-release module by @BernieWhite.
#2549
See change log.