Skip to content

Commit 46c1a14

Browse files
authoredJan 8, 2025
Add support for declaring required capabilities #2707 (#2708)
1 parent 778f4b6 commit 46c1a14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1348
-234
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ The following conceptual topics exist in the `PSRule` module:
289289
- [Binding.TargetName](https://aka.ms/ps-rule/options#bindingtargetname)
290290
- [Binding.TargetType](https://aka.ms/ps-rule/options#bindingtargettype)
291291
- [Binding.UseQualifiedName](https://aka.ms/ps-rule/options#bindingusequalifiedname)
292+
- [Capabilities](https://aka.ms/ps-rule/options#capabilities)
292293
- [Configuration](https://aka.ms/ps-rule/options#configuration)
293294
- [Convention.Include](https://aka.ms/ps-rule/options#conventioninclude)
294295
- [Execution.AliasReference](https://aka.ms/ps-rule/options#executionaliasreference)

‎docs/CHANGELOG-v3.md

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ What's changed since pre-release v3.0.0-B0351:
3535
- A precondition `type` property has been added to selectors and suppression groups.
3636
- This simplifies type conditions that are common used in selectors and suppression groups.
3737
- To use this feature, set the `apiVersion` to `github.com/microsoft/PSRule/2025-01-01`.
38+
- Add support for declaring required capabilities in workspaces and modules by @BernieWhite.
39+
[#2707](https://github.com/microsoft/PSRule/issues/2707)
40+
- A module or workspace can declare required capabilities that must be supported by the runtime.
41+
- When a capability is not supported or disabled, the runtime will fail with a specific error.
42+
- This provides a way to ensure that rules execute consistently across environments.
3843
- General improvements:
3944
- Added support for registering custom emitters by @BernieWhite.
4045
[#2681](https://github.com/microsoft/PSRule/issues/2681)

0 commit comments

Comments
 (0)