Implement -r recursive option
KevinHock opened this issue ยท 6 comments
KevinHock commented
So let us steal, once again (a 3rd, or 4th time), from Bandit.
https://github.com/openstack/bandit/blob/master/bandit/cli/main.py#L157-L160
This will enable a user to just give -r /path/to/files instead of -f file one at a time.
This is less straightforward, you should also add
parser.add_argument(
'targets', metavar='targets', type=str, nargs='*',
help='source file(s) or directory(s) to be tested'
) parser.add_argument(
'-x', '--exclude', dest='excluded_paths', action='store',
default='', help='comma-separated list of paths to exclude from scan '
'(note that these are in addition to the excluded '
'paths provided in the config file)'
)too.
This will help us out a great deal, as I'm working on documentation, and then after docs I'll return to the CFG work (the expr_star_handler stuff). So without you I wouldn't work on this for a while.
KevinHock commented
Look at the files I linked to see how all this is done.
KevinHock commented
Hi @omergunal, I have a hard ticket for you ๐
omergunal commented
All right, i'm waiting for you
KevinHock commented
Yes?
omergunal commented
We can work on this when you finish documentation
KevinHock commented
Yay ๐ ๐ ๐