We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe532c3 commit aa8ee69Copy full SHA for aa8ee69
coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php
@@ -406,6 +406,10 @@ public function process(File $phpcsFile, $stackPtr)
406
continue;
407
}
408
409
+ // Search for the previous comment string but also allow for
410
+ // PHPCS ignore comments. If we encounter ignore comments then
411
+ // we need to be more lenient later by checking if $prev is an
412
+ // ignore comment.
413
$prev = $phpcsFile->findPrevious(
414
([T_DOC_COMMENT_STRING => T_DOC_COMMENT_STRING] + Tokens::$phpcsCommentTokens),
415
($tag - 1),
0 commit comments