Documentation of configuration is confusing / misleading regarding exclude
vs exclude_dirs
#528
Labels
bug
Something isn't working
exclude
vs exclude_dirs
#528
Reading the docs for the first time, I struggled to correctly formulate my desired
.bandit.yaml
.The readme doc shows the use of
exclude: /test
, but the readthedocs site does not mentionexclude
orexclude_dirs
.I was writing a yaml doc with
and finding that files in my various
_build/
directories (a project-specific packaging process) were still being scanned.Essential
It should be obvious that I needed to write
based on the readme.
Ideal
I'd like to see:
(this is based on my understanding, after only a few minutes reading, that bandit is transitioning from "legacy" ini config to yaml?)
exclude_dirs: ["foo"]
will capturefoo/
,bar/foo/
, etc.The text was updated successfully, but these errors were encountered: