We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSRule v2 introduced a severity level for rules that can be configured as Error, Warning, or Information.
Error
Warning
Information
The Level can be defined on each rule or inherits from the default Error level.
Level
It would be helpful for some scenarios to be able to override the severity level for rules with a baseline.
Please 👍 if you have a specific requirement for this issue.
A baseline can override the severity by specifying the name of the rule and the severity level.
--- # Synopsis: A custom baseline. apiVersion: github.com/microsoft/PSRule/v1 kind: Baseline metadata: name: Corp.Azure spec: rule: tag: release: GA override: level: Azure.APIM.APIDescriptors: Information Azure.Template.UseLocationParameter: Error
To support reporting of this we should include ruleConfigurationOverrides in SARIF to identify and rules that have been overridden.
ruleConfigurationOverrides
The text was updated successfully, but these errors were encountered:
Added support for overriding rule severity level microsoft#1180
46086cf
Added support for overriding rule severity level #1180 (#2621)
d5cdcfd
BernieWhite
Successfully merging a pull request may close this issue.
PSRule v2 introduced a severity level for rules that can be configured as
Error
,Warning
, orInformation
.The
Level
can be defined on each rule or inherits from the defaultError
level.It would be helpful for some scenarios to be able to override the severity level for rules with a baseline.
Please 👍 if you have a specific requirement for this issue.
Update 2023-05-07
A baseline can override the severity by specifying the name of the rule and the severity level.
Update 2023-08-28
To support reporting of this we should include
ruleConfigurationOverrides
in SARIF to identify and rules that have been overridden.The text was updated successfully, but these errors were encountered: