Bandit help is incorrect and needs adjustment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
Fix Released
|
Low
|
Dave Walker |
Bug Description
Bandit help shows the default location of bandit file is /etc/bandit/
Here is the help for bandit
-------
[root@ip9-
usage: bandit [-h] [-r] [-a {file,vuln}] [-n CONTEXT_LINES] [-c CONFIG_FILE]
[-p PROFILE] [-l] [-f {csv,json,txt,xml}] [-o OUTPUT_FILE] [-v]
[-d]
Bandit - a Python source code analyzer.
positional arguments:
targets source file(s) or directory(s) to be tested
optional arguments:
-h, --help show this help message and exit
-r, --recursive process files in subdirectories
-a {file,vuln}, --aggregate {file,vuln}
-n CONTEXT_LINES, --number CONTEXT_LINES
-c CONFIG_FILE, --configfile CONFIG_FILE
-p PROFILE, --profile PROFILE
-l, --level results level filter
-f {csv,json,txt,xml}, --format {csv,json,txt,xml}
-o OUTPUT_FILE, --output OUTPUT_FILE
-v, --verbose show extra information like excluded and included
-d, --debug turn on debug mode
-------
And here is the actual output
bandit -r /usr/lib/
no config found, tried ...
bandit.yaml
The above shows it looks in a different directory.
The help needs adjustment here.
Changed in bandit: | |
assignee: | nobody → Dave Walker (davewalker) |
status: | New → Triaged |
Fix proposed to branch: master /review. openstack. org/203451
Review: https:/