Skip to content

[dx] Move if-set rules into code-quality and coding-style sets, deprecate SetList::IF - #8414

Merged
TomasVotruba merged 1 commit into
mainfrom
move-if-set-rules
Aug 29, 2026
Merged

[dx] Move if-set rules into code-quality and coding-style sets, deprecate SetList::IF#8414
TomasVotruba merged 1 commit into
mainfrom
move-if-set-rules

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Move rules that live in the CodeQuality and CodingStyle namespaces but were registered in the if set into their level sets:

  • AlternativeIfToBracketRector, CompleteMissingIfElseBracketRector -> CodingStyleLevel
  • InlineIfToExplicitIfRector, TernaryFalseExpressionToIfRector, ArrayExplicitBoolCompareRector, ObjectExplicitBoolCompareRector, ShortenElseIfRector -> CodeQualityLevel

Deprecate SetList::IF, as the if set is being emptied (its remaining entries are deprecated rules handled in separate PRs).

Part of splitting the if-set cleanup into focused PRs.

…cate SetList::IF

Move rules that live in the CodeQuality and CodingStyle namespaces but were registered in the if set into their level sets: AlternativeIfToBracketRector and CompleteMissingIfElseBracketRector to CodingStyleLevel; InlineIfToExplicitIfRector, TernaryFalseExpressionToIfRector, ArrayExplicitBoolCompareRector, ObjectExplicitBoolCompareRector and ShortenElseIfRector to CodeQualityLevel. Deprecate SetList::IF, as the if set is being emptied.

Claude-Session: https://claude.ai/code/session_012HQ19gVsT8wVkekuVqVXGx
@TomasVotruba
TomasVotruba merged commit 5df5391 into main Aug 29, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the move-if-set-rules branch August 29, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant