-
-
Notifications
You must be signed in to change notification settings - Fork 675
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
It tells you the line, but not the src file path.
If you have a lot of src files, that's a problem:
bandit: commands[0]> bandit -r src/borg -c pyproject.toml
[main] INFO profile include tests: None
[main] INFO profile exclude tests: B404,B101
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO using config: pyproject.toml
[main] INFO running on Python 3.10.17
Working... ━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━ 33% 0:00:02[tester] WARNING nosec encountered (B105), but no failed test on line 60
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━ 67% 0:00:01[tester] WARNING nosec encountered (B603), but no failed test on line 70
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:01
Expected behavior
It should tell src file path and line number if it complains about something.
Bandit version
1.8.3
Python version
3.10
Sancho869 and vanschelven
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working