You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: removed ScoreParameters, Category and RuleType are now fields of Rule (#356)
<!--
Thanks for contributing to 2ms by offering a pull request.
-->
Closes #
**Proposed Changes**
<!--
Please describe the big picture of your changes here. If it fixes a bug
or resolves a feature request, be sure to link to that issue.
-->
**Checklist**
- [ ] I covered my changes with tests.
- [ ] I Updated the documentation that is affected by my changes:
- [ ] Change in the CLI arguments
- [ ] Change in the configuration file
I submit this contribution under the Apache-2.0 license.
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,9 +362,8 @@ Other fields are optional and can be seen in the example bellow of a file with a
362
362
severity: High # severity, can only be one of [Critical, High, Medium, Low, Info]
363
363
tags: # identifiers for the rule, tags can be used as values of --rule and --ignore-rule flags
364
364
- api-key
365
-
scoreParameters: # scoreParameters can be omitted for overrides, in which case the respective default rule scoreParameters will be considered
366
-
category: General # category of the rule, should be a string of type ruledefine.RuleCategory. Impacts cvss score
367
-
ruleType: 4 # can go from 4 to 0, 4 being most severe. For overrides, if Category is defined, ruleType also needs to be defined, or otherwise it will be considered 0. Impacts cvss score
365
+
category: General # category of the rule, should be a string of type ruledefine.RuleCategory. Can be omitted in custom rule, but if omitted and ruleId matches a default rule, the category will take the value of the category of that defaultRule. Impacts cvss score
366
+
scoreRuleType: 4 # can go from 1 to 4, 4 being most severe. If omitted in rule it will take the value of 1. Impacts cvss score
368
367
disableValidation: false# if true, disables validity check for this rule, regardless of --validate flag
369
368
deprecated: false# if true, the rule will not be used in the scan, regardless of --rule flag
0 commit comments