Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: remove redundant @package tags #320

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Nov 3, 2023

@package tags are an arcane manner to group related files as belonging to one project.

For projects using namespaces, the current recommendation is to only have @package tags when they have supplemental information to the namespace.

As that isn't the case in YoastCS (with the exception of the non-namespaced test bootstrap file), I'm proposing to remove the @package tags from the YoastCS class docblocks.

Along the same lines, the @author tag is also an outdated practice as git blame will work just fine, so I'm removing those too.

Includes cleaning up (normalizing) the tag description alignments in the class docblocks.

👉 reviewing with whitespace changes ignored should make it easier to see that the only real change is the removal of the package/author tags.

Refs:

`@package` tags are an arcane manner to group related files as belonging to one project.

For projects using namespaces, the current recommendation is to only have `@package` tags when they have supplemental information to the namespace.

As that isn't the case in YoastCS (with the exception of the non-namespaced test bootstrap file), I'm proposing to remove the `@package` tags from the YoastCS class docblocks.

Along the same lines, the `@author` tag is also an outdated practice as `git blame` will work just fine, so I'm removing those too.

Includes cleaning up (normalizing) the tag description alignments in the class docblocks.

:point_right: reviewing with whitespace changes ignored should make it easier to see that the only real change is the removal of the package/author tags.

Refs:
* https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/package.html#package
* https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md#59-package
@coveralls
Copy link

Coverage Status

coverage: 97.644%. remained the same
when pulling 820adfb on JRF/yoastcs-docs-remove-redundant-package-tags
into 6754fc3 on develop.

@jrfnl jrfnl merged commit 86045c2 into develop Nov 3, 2023
37 checks passed
@jrfnl jrfnl deleted the JRF/yoastcs-docs-remove-redundant-package-tags branch November 3, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants