-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blacklist code B320 was removed and breaks my deploy #1228
Comments
Taking a look @djmv , apologies for the disruption |
FYI, the documentation is accurate. We don't remove documentation for rules that were removed for historical information. We include a note "The check for this call has been removed." to make this clear. It's also preserved in order to prevent a newly created rule to reuse the bandit ID which would cause other problems. PR #1212 |
Note, this also occurs with other removed tests such as B322. .tox/py313/bin/bandit -t b322 -r examples/
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: b322
[main] INFO cli exclude tests: None
[main] ERROR Unknown test found in profile: b322 That being said, I agree that ideally Bandit should not error and exit in this case. |
When a user gives a test ID to include or skip, the current behavior raises an exception and exits the process. However, when tests end up getting deprecated and eventually removed, it is a lot more user friendly to simple present a warning to the user that the test ID given wasn't found rather than a hard error and exit. Fixes: PyCQA#1228 Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
Thank you very much for taking the recommendation. |
The official documentation is not updated
When read official doc still is B320 a valid code.
Please update.
Describe the solution
Also when remove a code, please leave a message stating that is an invalid code without through the ERROR. It could be resolved sending a message stating that code will be deprecated and recommend remove it, after an specific date. This prevent that a next deploy breaks everything that before works.
Thanks, I hope to help.
If I can contribute tell me.
The text was updated successfully, but these errors were encountered: