Skip to content

Conversation

akarmazyn
Copy link
Contributor

Currently the only acceptable way of suppressing errors is by either using single line comments:

// @codeStandardsIgnoreStart 

Or doc block comments:

/* * @codeStandardsIgnoreStart */ 

This commit makes it possible to suppress errors by using PHPDoc comments:

/** * @codeStandardsIgnoreStart */ 
@aik099
Copy link
Contributor

aik099 commented Sep 23, 2015

Before this PR following code was working, but I think after this PR it won't:

/** @codeStandardsIgnoreStart */
@akarmazyn
Copy link
Contributor Author

My original comment has a typo on every annotation, it should be @codingStandardsIgnoreStart instead of @codeStandardsIgnoreStart.
The commit of course uses the correct annotation name.

@gsherwood gsherwood changed the title Change T_DOC_COMMENT to T_DOC_COMMENT_TAG, fixes suppression in PHPDoc block Fixes suppression of errors using docblocks Sep 24, 2015
gsherwood added a commit that referenced this pull request Sep 24, 2015
Fixes suppression of errors using docblocks
@gsherwood gsherwood merged commit 666c349 into squizlabs:master Sep 24, 2015
gsherwood added a commit that referenced this pull request Sep 24, 2015
@gsherwood
Copy link
Member

Thanks for the fix and tests. Looks like a problem that came from the switch to the new comment tokenizer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants