How can we scan for only specific set of severity levels in v5? #1804
-
I'm trying to generate a report with only Severity Level of 1, 2 and 3. Presently, the default way, I'm getting all severity levels from 1 to 5 in my report. I know I can use colon (:3) to generate report with specific severity level only, so it seems I need to generate 3 separate reports for 1, 2 and 3 levels. I tried --severity-threshold and that only seems to be indicating when to error out and not control the report output. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can add multiple properties to our For example: You can also use combinations e.g. |
Beta Was this translation helpful? Give feedback.
You can add multiple properties to our
--rule-selector
flag, including multiple different severity levels.For example:
sf code-analyzer rules --rule-selector=1,2,3
(which you can also use in the run command)You can also use combinations e.g.
--rule-selector=pmd:1,Custom:2
(engines, tags, etc.)