Skip to content

[dx] Deprecate SimplifyIfElseToTernaryRector to avoid less readable code - #8411

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-simplify-if-else-to-ternary
Aug 29, 2026
Merged

[dx] Deprecate SimplifyIfElseToTernaryRector to avoid less readable code#8411
TomasVotruba merged 1 commit into
mainfrom
deprecate-simplify-if-else-to-ternary

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The result depends on context and can worsen readability; extracting a method is a better fix when needed. Replace the body with a deprecation message via ShouldNotHappenException, remove its tests, and unregister it from the if set.

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

The result depends on context and can worsen readability; extracting a method is a better fix when needed. Replace the body with a deprecation message, remove its tests, and unregister it from the if set.

Claude-Session: https://claude.ai/code/session_012HQ19gVsT8wVkekuVqVXGx
@TomasVotruba
TomasVotruba force-pushed the deprecate-simplify-if-else-to-ternary branch from d740ea6 to 2147073 Compare August 29, 2026 22:20
@TomasVotruba TomasVotruba changed the title [dx] Deprecate SimplifyIfElseToTernaryRector [dx] Deprecate SimplifyIfElseToTernaryRector to avoid less readable code Aug 29, 2026
@TomasVotruba
TomasVotruba merged commit d28960e into main Aug 29, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-simplify-if-else-to-ternary branch August 29, 2026 22:22
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