-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
config file as described in README.rst does not work #317
Comments
want to take this one on @davidak ? |
#318 is needed to use a sane name. I might find the time to do it then, but feel free to do it yourself. |
This bug seems to be caused by inconsistent behavior of Bandit (and incomplete documentation). If you use .bandit file, you need to start the file with text “[bandit]” and then add the arguments. For example:
But if you want to use separate config file with "–configfile" argument on the command line, you have to remove the text “[bandit]”, replace “exclude” with “exclude_dirs” and add the values inside square brackets like this:
|
Hi, the following may be helpful to configure |
https://bandit.readthedocs.io/en/latest/config.html says |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
.bandit
file with content:bandit -c .bandit -r module/
[main] ERROR .bandit : Error parsing file.
Expected behavior
working as described in readme
Bandit version
Additional context
Docs say it should be YAML and not INI. https://bandit.readthedocs.io/en/latest/config.html
The text was updated successfully, but these errors were encountered: