Sometimes there are legitimate reasons to have a piece of code or documentation that violates the coding standards. For these cases PHP CodeSniffer provides the @codingStandardsIgnoreStart and @codingStandardsIgnoreEnd markers that can be used to delineate the offending code snippet without triggering a coding standards violation.

When these markers are used to delineate documentation in a function docblock it falsely triggers the Drupal.Commenting.DocComment.ParamNotFirst sniff and throws this error:

Parameter tags must be defined first in a doc comment

CommentFileSizeAuthor
#2 2661274-2.patch3.46 KBpfrenssen

Comments

pfrenssen created an issue. See original summary.

pfrenssen’s picture

Status: Active » Needs review
StatusFileSize
new3.46 KB

klausi’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.