ruff
c6ba7dfb - feat(rules): implement `flake8-bandit` `S201` (`flask_debug_true`) (#7503)

Commit
2 years ago
feat(rules): implement `flake8-bandit` `S201` (`flask_debug_true`) (#7503) Part of #1646. ## Summary Implement `S201` ([`flask_debug_true`](https://bandit.readthedocs.io/en/latest/plugins/b201_flask_debug_true.html)) rule from `bandit`. I am fairly new to Rust and Ruff's codebase, so there might be better ways to implement the rule or write the code. ## Test Plan Snapshot test from https://github.com/PyCQA/bandit/blob/1.7.5/examples/flask_debug.py, with a few additions in the "unrelated" part to test a bit more cases.
Author
Parents
Loading