Skip to content

[Console] Deprecate custom-rule command - #8393

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-rector-rule
Aug 28, 2026
Merged

[Console] Deprecate custom-rule command#8393
TomasVotruba merged 1 commit into
mainfrom
tv-rector-rule

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The custom-rule command assumed too much about a project's layout (composer autoload-dev keys, phpunit test suite wiring, PHPUnit attribute vs annotation detection). Scaffolding a local custom rule is now handled more reliably by AI agents.

execute() no longer generates files - it prints an error and returns exit code 1:

 [ERROR] The "custom-rule" command is deprecated and no longer generates
         files. Use an AI agent to scaffold a custom rule instead - it
         handles the setup faster and with less guesswork.

Also removed:

  • templates/custom-rule and templates/custom-rules-annotations
  • now-unused JsonFileSystem::writeFile() and ClassName::DATA_PROVIDER
  • stale ext-dom composer suggest that referenced the command

https://claude.ai/code/session_01RiHnNDzk3DFHHgXojtfjoz

The command assumed too much about project layout. Scaffolding a custom
rule is now handled more reliably by AI agents, so execute() prints an
error and exits with code 1. Templates and the now-unused helpers are
removed.

Claude-Session: https://claude.ai/code/session_01RiHnNDzk3DFHHgXojtfjoz
@TomasVotruba
TomasVotruba merged commit 0607fe0 into main Aug 28, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the tv-rector-rule branch August 28, 2026 22:08
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