#43022 closed defect (bug) (wontfix)
PHPCS config refers to non-existent WordPress.Commenting.DocblockFormat rule
| Reported by: | bpayton | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Our new PHPCS config phpcs.xml.dist refers to a WordPress.Commenting.DocblockFormat rule that does not appear to be present in the master or develop branches of the WordPress-Coding-Standards repo.
The only place I've found the text "DocblockFormat" in that repo is the feature/new-multi-line-comment-formatting-sniffs branch:
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/feature/new-multi-line-comment-formatting-sniffs/WordPress/Sniffs/Commenting/DocblockFormatSniff.php
cc @pento
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket and checking out our shiny new PHPCS bits and pieces @bpayton, you are indeed correct. We're working off of that branch you mention.
For now, you can either use that branch of WPCS, something like this in your
composer.jsonfile:Or you can comment out the
WordPress.Commenting.DocblockFormatsniff inphpcs.xml.diffThe upstream issue WPCS #1120 is what needs finalising before that branch can be merged into
masterand a v1 release of WPCS is released.I'm going to close this ticket as
wontfixis it's really an upstream issue, feel free to subscribe to that GitHub issue to keep up with updates