ruff/crates/ruff_linter
Dhruv Manilawala 3f884b4b34
Avoid running logical line rule logic if not enabled (#11951)
## Summary

This PR updates the logical line rules entry-point function to only run
the logic if any of the rules within that group is enabled.

Although this shouldn't really give any performance improvements, it's
better not to do additional work if we can. This is also consistent with
how other rules are run.

## Test Plan

`cargo insta test`
2024-06-20 16:28:53 +00:00
..
resources Avoid syntax errors for test cases (#11923) 2024-06-18 17:16:27 +05:30
src Avoid running logical line rule logic if not enabled (#11951) 2024-06-20 16:28:53 +00:00
Cargo.toml Bump version to v0.4.9 (#11872) 2024-06-14 20:36:22 +05:30
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00