-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[flake8-bandit
] Implement S4XX
suspicious import rules
#8831
Conversation
5e2bc90
to
b5de9d9
Compare
b5de9d9
to
5292b86
Compare
@charliermarsh I added basic docs for all the rules. Ready for review or for culling anything which is redundant or unwanted in the end. Either way afterwards all |
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
S404 | 204 | 204 | 0 | 0 | 0 |
S403 | 33 | 33 | 0 | 0 | 0 |
S405 | 9 | 9 | 0 | 0 | 0 |
S402 | 4 | 4 | 0 | 0 | 0 |
S410 | 3 | 3 | 0 | 0 | 0 |
S411 | 1 | 1 | 0 | 0 | 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Summary
Adds all
S4XX
rules to the flake8-bandit plugin port.There is a lot of documentation to write, some tests can be expanded and implementation can probably be refactored to be more compact. As there is some discussion on whether this is actually useful. (See: #1646 (comment)), wanted to check which rules we want to have before I go through the process of polishing this up.
Test Plan
Fixtures for all rules based on
flake8-bandit
testsIssue link
Refers: #1646