Replies: 1 comment
-
Is this feature is already on your roadmap or if there are any plans to implement it in future releases, I would greatly appreciate any updates you could provide. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say we have this pyproject.toml. I wish bandit could run this command
bandit -c pyproject.toml
and just look at the src directory in thetargets
configuration.Why i need this?
bandit is run using the
-r .
command like thisbandit -c pyproject.toml -r .
. The problem with this command is that bandit will only search the current directory and ignore thetargets
configuration making the configuration useless. In fact bandit looks the entire directory including venv, src, tests, etc.I had to change the configuration to ignore folders that shouldn't be scanned by bandit
I think making bandit read the
targets
configuration for the scan directory is more elegant and makes the command shorter like thisbandit -c pyproject.toml
Beta Was this translation helpful? Give feedback.
All reactions