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

Support showing Bandit issues by severity #11877

Closed
rahult-graphcore opened this issue Jun 14, 2024 · 1 comment
Closed

Support showing Bandit issues by severity #11877

rahult-graphcore opened this issue Jun 14, 2024 · 1 comment

Comments

@rahult-graphcore
Copy link

rahult-graphcore commented Jun 14, 2024

Bandit supports reporting on only high-severity issues using the -lll flag e.g.
bandit examples/*.py -n 3 -lll

or medium and high severity issues with -ll
bandit examples/*.py -n 3 -ll

This is quite useful when running on a large codebase to filter down to only the most serious issues.
This is a request to add this config option to Bandit in the Ruff linter.

@MichaReiser
Copy link
Member

Hi

I can see how this is useful. We're considering to introduce a warning level to distinguish between different severities. See #1256

I don't think we want to go as far as having more levels other than warning and error. I'll close this in favor of #1256

@MichaReiser MichaReiser closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
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

No branches or pull requests

2 participants