Skip to content

Commit

Permalink
phpcs: exclude DocComment.SpacingBeforeTags rule
Browse files Browse the repository at this point in the history
It unfortunately flags even cases where there is no short or long
description before the tags:

```
/**
 * @SInCE 1.0.0
 */
```

Probably (inadvertently?) caused by squizlabs/PHP_CodeSniffer#852
  • Loading branch information
JDGrimes committed May 4, 2018
1 parent 22c1937 commit feb2dd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpcs/WordPoints/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<!-- https://github.com/squizlabs/PHP_CodeSniffer/issues/601 -->
<exclude name="Squiz.Commenting.FunctionComment.IncorrectTypeHint" />
<!-- This unfortunately flags even cases where there are only tags. -->
<exclude name="Generic.Commenting.DocComment.SpacingBeforeTags" />
</rule>

<rule ref="WordPress.DB.DirectDatabaseQuery">
Expand Down

0 comments on commit feb2dd3

Please sign in to comment.