ruff
eb4ed247 - [`flake8-simplify`] Implement `SIM911` (#9460)

Commit
1 year ago
[`flake8-simplify`] Implement `SIM911` (#9460) ## Summary Closes #9319, implements the [`SIM911` rule from `flake8-simplify`](https://github.com/MartinThoma/flake8-simplify/pull/183). #### Note I wasn't sure whether or not to include ```rs if checker.settings.preview.is_disabled() { return; } ``` at the beginning of the function with violation logic if the rule's already declared as part of `RuleGroup::Preview`. I've seen both variants, so I'd appreciate some feedback on that :)
Author
Parents
Loading