mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00

## Summary Adds all `S4XX` rules to the [flake8-bandit](https://github.com/tylerwince/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: https://github.com/astral-sh/ruff/issues/1646#issuecomment-1732331441), 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` [tests](https://github.com/tylerwince/flake8-bandit/tree/main/tests) ## Issue link Refers: https://github.com/astral-sh/ruff/issues/1646
4 lines
160 B
Python
4 lines
160 B
Python
import xml.etree.cElementTree # S405
|
|
from xml.etree import cElementTree # S405
|
|
import xml.etree.ElementTree # S405
|
|
from xml.etree import ElementTree # S405
|