Skip to content

[dx] Deprecate CombineIfRector - #8413

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-combine-if
Aug 29, 2026
Merged

[dx] Deprecate CombineIfRector#8413
TomasVotruba merged 1 commit into
mainfrom
deprecate-combine-if

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Merging nested ifs can create much less readable code and depends on context. Replace the body with a deprecation message, remove its tests, and unregister it from the if set.

Also skip the type-perfect narrowing of the generic CommentsMerger::keepComments(), which only surfaces because this rule stopped calling it.

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

Merging nested ifs can create much less readable code and depends on context. Replace the body with a deprecation message, remove its tests, and unregister it from the if set. Skip the type-perfect narrowing of the generic CommentsMerger::keepComments(), which only appears because this rule stopped calling it.

Claude-Session: https://claude.ai/code/session_012HQ19gVsT8wVkekuVqVXGx
@TomasVotruba
TomasVotruba enabled auto-merge (squash) August 29, 2026 22:26
@TomasVotruba
TomasVotruba merged commit bfee018 into main Aug 29, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-combine-if branch August 29, 2026 22:27
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