Skip to content

[Deprecate] SuffixMockObjectPropertyRector as it can produce invalid variable names - #795

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-suffix-mock-object-property
Oct 10, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
deprecate-suffix-mock-object-property

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Renaming mock properties to add a Mock suffix can produce invalid variable names and collide with existing ones. Enforcing the suffix is better handled by a coding standard than an automated rename.

Marks the rule as deprecated via DeprecatedInterface, throwing on refactor(), and removes its tests.

@TomasVotruba
TomasVotruba merged commit 41966d2 into main Oct 10, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-suffix-mock-object-property branch October 10, 2026 22:31
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