Skip to content

refactor(rules): regroup rule IDs into F/N/D/C/X categories - #25

Merged
onefloid merged 3 commits into
mainfrom
new-ids
Jul 26, 2026
Merged

refactor(rules): regroup rule IDs into F/N/D/C/X categories#25
onefloid merged 3 commits into
mainfrom
new-ids

Conversation

@onefloid

Copy link
Copy Markdown
Member

Split the generic "Semantic (S)" bucket into Code Quality (C) and External Interactions (X), and cleanly separated Formatting into Casing (F1xx) / Whitespace (F2xx) / Layout (F3xx) instead of one mixed F1xx group.

Renamed rules keep their old ID working for one deprecation cycle via DEPRECATED_IDS, resolved transparently in --select, # noqa, and linti explain, with a deprecation warning pointing at the new ID. Diagnostics always report the canonical ID. Docs (README, ALL_RULES.md) and tests updated to match; version bumped to 0.6.0.

onefloid added 2 commits July 26, 2026 13:41
Split the generic "Semantic (S)" bucket into Code Quality (C) and
External Interactions (X), and cleanly separated Formatting into
Casing (F1xx) / Whitespace (F2xx) / Layout (F3xx) instead of one
mixed F1xx group.

Renamed rules keep their old ID working for one deprecation cycle
via DEPRECATED_IDS, resolved transparently in --select, # noqa, and
`linti explain`, with a deprecation warning pointing at the new ID.
Diagnostics always report the canonical ID. Docs (README,
ALL_RULES.md) and tests updated to match; version bumped to 0.6.0.
Pulls the duplicated registration/config/reset logic out of BaseRule/BaseStatementRule into a shared _RuleBase, renames BaseRule to BaseTokenRule (old name kept as an alias), and types interested_in() on both base classes.
ruff 0.16.0 introduces new findings that need review in a separate PR.
@onefloid
onefloid merged commit 8c65ff3 into main Jul 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant