Skip to content
New issue

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

Add numeric options for severity and confidence #702

Commits on Apr 1, 2021

  1. Add string options for severity and confidence

    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.
    Nathan Stocking committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    b3cff1a View commit details
    Browse the repository at this point in the history