Skip to content

[Cleanup] Remove @changelog as no longer maintained/used, use RuleDefinition instead#6035

Merged
TomasVotruba merged 4 commits intomainfrom
tv-cleanup
Jun 26, 2024
Merged

[Cleanup] Remove @changelog as no longer maintained/used, use RuleDefinition instead#6035
TomasVotruba merged 4 commits intomainfrom
tv-cleanup

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Jun 26, 2024

We've added this feature many years ago, but we no longer maintain, nor use it. There is already rule RuleDefinition that should be used for any explanation.

Time to cleanup the code 👍

@TomasVotruba TomasVotruba changed the title tv cleanup [Cleanup] Remove @changelog as no longer maintained nor used Jun 26, 2024
use Webmozart\Assert\Assert;

/**
* @changelog https://php.watch/versions/8.1/version_compare-operator-restrictions
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @changelog can be replaced with @see

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an option. Should be part of rule definition though, otherwise it's only visible when rule is opened (rarely :))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. this link is completelly wrong. It's a different feature.
That's why I want to remove those, as docblocks are not part of rule definition and can be incorrectly copy-pasted.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked couple of those and they're either:

  • link to 3v4l.org = those should be in a code example snippet or tests
  • links to PHP rfc
  • dead links

I'll keep them removed, as I want to keep focused on sets rather than particular rules. Similar way PHPStan does, to make it easy to install Rector and run it 👍

@TomasVotruba TomasVotruba changed the title [Cleanup] Remove @changelog as no longer maintained nor used [Cleanup] Remove @changelog as no longer maintained/used, use RuleDefinition instead Jun 26, 2024
@TomasVotruba TomasVotruba force-pushed the tv-cleanup branch 2 times, most recently from 79472f8 to 217e348 Compare June 26, 2024 03:00
@TomasVotruba TomasVotruba enabled auto-merge (squash) June 26, 2024 03:31
@TomasVotruba TomasVotruba merged commit 8741154 into main Jun 26, 2024
@TomasVotruba TomasVotruba deleted the tv-cleanup branch June 26, 2024 03:32
,
[
AddLiteralSeparatorToNumberRector::LIMIT_VALUE => 1_000_000,
self::LIMIT_VALUE => 1_000_000,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configurable example should use original class reference instead of self:: to ease copy paste config

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants