Comma separated exclude paths not honored

Bug #1700616 reported by Abel Lopez
6
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,/src/docs

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

Revision history for this message
Charles Crouch (ccrouch) wrote :

From https://github.com/openstack/bandit/blob/e40af23ff67fc89f024c5a73f93c8d9a0b43caa3/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.

Revision history for this message
Abel Lopez (al592b) wrote :

Not a bug, misused tool in local environment

Changed in bandit:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.