Skip to content

Commit f2f7dbe

Browse files
committed
Avoid false-positive with sniff detecting itself
1 parent bf5e0ae commit f2f7dbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

phpcs.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,9 @@
158158
<exclude-pattern>tests/Core/Tokenizer/StableCommentWhitespaceWinTest\.php</exclude-pattern>
159159
</rule>
160160

161+
<!-- Avoid false positive with this sniff detecting itself -->
162+
<rule ref="Generic.Commenting.Todo">
163+
<exclude-pattern>src/Standards/Generic/Sniffs/Commenting/TodoSniff\.php</exclude-pattern>
164+
<exclude-pattern>src/Standards/Generic/Tests/Commenting/TodoUnitTest\.php</exclude-pattern>
165+
</rule>
161166
</ruleset>

0 commit comments

Comments
 (0)