Skip to content

Deprecate TernaryFalseExpressionToIfRector - #8683

Merged
TomasVotruba merged 2 commits into
mainfrom
worktree-tv-deprecate-ternary-false-expression-to-if
Oct 17, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
worktree-tv-deprecate-ternary-false-expression-to-if

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Deprecate TernaryFalseExpressionToIfRector.

Too niche for wide application - the ternary-with-false to if transform is a personal preference seen in one private project, not broadly useful.

  • marks the rule with DeprecatedInterface + @deprecated, refactor() now throws
  • removes it from CodeQualityLevel
  • drops its test directory
  • drops it from the ChangeSwitchTernary issue config (scope-after-reprint regression still covered by the remaining rules)

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 17, 2026 14:49
@TomasVotruba
TomasVotruba merged commit 20d6f13 into main Oct 17, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the worktree-tv-deprecate-ternary-false-expression-to-if branch October 17, 2026 14:50
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.

2 participants