-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Incorrect documentation links #593
Comments
I'm unable to recreate this. In fact I don't see how this was ever possible, even on version 1.6.2. As you can see here, kind is set to "calls" also with id of "b313-b320". How is it possible https://github.com/PyCQA/bandit/blob/1.6.2/bandit/core/docs_utils.py#L44 |
If you have handy a complete example I can test with, that would be great. I used one of the existing samples and see no recreation of the bad link. |
Please try with the latest version, reopen if necessary. I suspect this might have been fixed with PR #507 |
Can confirm regression with 1.7.4 Test results:
|
Describe the bug
bandit CLI generates incorrect links
To Reproduce
lxml.etree.fromstring
call and run bandit CLIExpected behavior
Should generate links to https://bandit.readthedocs.io/en/latest/blacklists/blacklist_calls.html#b313-b320-xml instead of still linking to imports https://bandit.readthedocs.io/en/latest/blacklists/blacklist_imports.html#b313-b320-xml-bad-etree
Bandit version
The text was updated successfully, but these errors were encountered: