ruff/crates/ruff_linter
trag1c eb4ed2471b
[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 :)
2024-01-11 14:42:43 -05:00
..
resources/test [flake8-simplify] Implement SIM911 (#9460) 2024-01-11 14:42:43 -05:00
src [flake8-simplify] Implement SIM911 (#9460) 2024-01-11 14:42:43 -05:00
Cargo.toml Bump version to 0.1.11 (#9370) 2024-01-02 17:46:06 -05:00