Comma separated exclude paths not honored
Bug #1700616 reported by
Abel Lopez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
Invalid
|
Undecided
|
Unassigned |
Bug Description
in a .bandit file, setting multiple exclude: paths doesn't work
[bandit]
exclude: /src/tests,
This will exclude the /src/tests directory, but not the /src/docs dir.
Including multiple exclude lines has 'last one wins'
[bandit]
exclude: /src/tests
exclude: /src/docs
This will exclude the /src/docs directory, but not /src/tests
To post a comment you must log in.
From https:/ /github. com/openstack/ bandit/ blob/e40af23ff6 7fc89f024c5a73f 93c8d9a0b43caa3 /README. rst#per- project- command- line-args
it says "The currently supported arguments are: exclude: comma separated list of excluded paths"
So something definitely looks broken here.