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 several ini options for .bandit file #508

Merged
merged 5 commits into from Sep 23, 2019
Merged

Conversation

vuolter
Copy link
Contributor

@vuolter vuolter commented Jun 25, 2019

If Bandit actually supports an ini file why not use it for (almost) all the available CLI options?!

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')
Copy link
Member

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')

Copy link
Member

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')

Copy link
Member

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 ?

Copy link
Member

@ericwb ericwb left a 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.

@ericwb ericwb merged commit ca6d283 into PyCQA:master Sep 23, 2019
ericwb added a commit that referenced this pull request Sep 24, 2019
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>
@vuolter
Copy link
Contributor Author

vuolter commented Sep 27, 2019

Hey @ericwb thanks for merging my changes and ofc sorry I can reply to you only now.
I see you already added all the options I forgot, so I think that's all done, am I wrong?
Bye.

@ericwb
Copy link
Member

ericwb commented Sep 30, 2019

@vuolter No worries. You're all good. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants