mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 08:34:29 -05:00
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.