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
Add string options for severity and confidence (PyCQA#702)
Adds two new command line arguments which allow the user to specify
severity level and confidence level with a key-value pair rather than
repeating a flag. This makes it easier to specify those values if using
an alternate interface which invokes Bandit's CLI. The previous
repeatable flags have been retained and existing workflows will not be
affected.
New arguments:
* --severity-level: Takes a string "all", "low", "medium", or "high" to set the level. This has the same
effect as the existing -l/--level option. If both options are specified,
an error will be printed.
* --confidence-level: Takes a string "all", "low", "medium", or "high" to set the level.
This has the same effect as the existing -i/--confidence option. If both options are
specified, an error will be printed.
* Help text for these parameters clarifies why 'all' and 'low' aren't
the same although they will almost certainly produce the same set of results.
Co-authored-by: Nathan Stocking <[email protected]>
0 commit comments