-
-
Notifications
You must be signed in to change notification settings - Fork 625
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 several ini options for .bandit file #508
Conversation
If Bandit actually supports an ini file why not use it for (almost) all the available CLI options?!
args.output_format = _log_option_source( | ||
args.output_format, | ||
ini_options.get('format'), | ||
'output format') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the format
parameter is allowed, we need to also support --msg-template
in case someone chooses custom as the format.
args.debug, | ||
ini_options.get('debug'), | ||
'debug mode') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about --verbose
?
args.quiet, | ||
ini_options.get('quiet'), | ||
'silent mode') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about --ignore-nosec
and --baseline
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comments can always be addressed by a subsequent PR.
Added the following missing ini options: * msg-template - necessary if output is a parameter * verbose * ignore-nosec * baseline Related to PR #508 Signed-off-by: Eric Brown <browne@vmware.com>
Hey @ericwb thanks for merging my changes and ofc sorry I can reply to you only now. |
@vuolter No worries. You're all good. Thanks for the contribution! |
If Bandit actually supports an ini file why not use it for (almost) all the available CLI options?!