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

Exclude file pattern in config file #345

Closed
unittolabs opened this issue Jul 20, 2018 · 3 comments · Fixed by #450
Closed

Exclude file pattern in config file #345

unittolabs opened this issue Jul 20, 2018 · 3 comments · Fixed by #450

Comments

@unittolabs
Copy link

Hey guys!

I use your analyzer on my current project. It's a django applications, so tests written for each apps stored in apps folders, sometimes it's called tests.py, sometimes its has more complicated names and stores in tests folder.

I think it's will be great to have opportunity to exclude this tests from analyzed scope. I was try to use exclude in config file, but it's doesn't help me.

Maybe somebody has ideas or better ideas to do this?

@callum-p
Copy link

+1. Sometimes we put our tests in the same folder as the other source files to make imports easier. I need to exclude "test_*.py".

@gothraven
Copy link

is it possible ? or not yet ?

@thilp
Copy link
Contributor

thilp commented Feb 6, 2019

I'm also very eager to see this feature in Bandit, so I just created a PR to address this. Please review and support if you are interested!

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 a pull request may close this issue.

4 participants