ruff/ruff_cli
Martin Fischer a6566b1b34 refactor: Merge Settings.enabled and Settings.fixable
The Settings struct previously contained the fields:

     pub enabled: HashableHashSet<RuleCode>,
     pub fixable: HashableHashSet<RuleCode>,

This commit merges both fields into one by introducing a new
RuleTable type, wrapping HashableHashMap<RuleCode, bool>,
which has the following benefits:

1. It makes the invalid state that a rule is
   disabled but fixable unrepresentable.

2. It encapsulates the implementation details of the table.
   (It currently uses an FxHashMap but that may change.)

3. It results in more readable code.

       settings.rules.enabled(rule)
       settings.rules.should_fix(rule)

   is more readable than:

       settings.enabled.contains(rule)
       settings.fixable.contains(rule)
2023-01-17 09:20:57 -05:00
..
src refactor: Merge Settings.enabled and Settings.fixable 2023-01-17 09:20:57 -05:00
tests Split up the table corresponding to the pylint rules (#1868) 2023-01-14 08:07:02 -05:00
Cargo.toml Bump version to 0.0.224 2023-01-16 23:43:14 -05:00