Skip to content

Docs: remove redundant @package tags#785

Merged
GaryJones merged 1 commit into
developfrom
feature/docs-remove-package-tags-class-level
Aug 26, 2023
Merged

Docs: remove redundant @package tags#785
GaryJones merged 1 commit into
developfrom
feature/docs-remove-package-tags-class-level

Conversation

@jrfnl

@jrfnl jrfnl commented Aug 25, 2023

Copy link
Copy Markdown
Collaborator

@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.

That is only in a very limited way the case in VIPCS, so I'm proposing to remove the @package tags from the VIPCS class docblocks, though leaving them for now in the file docblocks.

At the very least, this removed duplicate information for which there is no reason for the duplication.

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 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.

That is only in a very limited way the case in VIPCS, so I'm proposing to remove the `@package` tags from the VIPCS class docblocks, though leaving them for now in the file docblocks.

At the very least, this removed duplicate information for which there is no reason for the duplication.

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 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
@jrfnl jrfnl added this to the 3.0.0 milestone Aug 25, 2023
@jrfnl jrfnl requested a review from a team as a code owner August 25, 2023 23:12

@GaryJones GaryJones left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@GaryJones GaryJones merged commit 70d9953 into develop Aug 26, 2023
@GaryJones GaryJones deleted the feature/docs-remove-package-tags-class-level branch August 26, 2023 00:16
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.

2 participants