Sniff exclude-pattern not respected anymore ? #680
-
After adjusting (1) the Sniff according to https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Coding-Standard-Tutorial#creating-the-sniff my <rule ref="src/Sniffs/StrictTypes/ExplainStrictTypesSniff.php">
<exclude-pattern>*/*Test\.php</exclude-pattern>
<exclude-pattern>*/.meta/*\.php</exclude-pattern>
<exclude-pattern>src/*</exclude-pattern>
<exclude-pattern>contribution/*.php</exclude-pattern>
</rule> Any suggestions what i'm doing wrong here? It was working before without the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@tomasnorre I suspect this may be a bug. I've just been running some tests and yes, it works without the Based on my current tests though, with the I'm taking a deeper look now. |
Beta Was this translation helpful? Give feedback.
-
Actually... the problem used to be much bigger and 2/3 of the problem has already been solved in previous PHPCS versions. This is a bug though, so could you please open a bug report for this ? |
Beta Was this translation helpful? Give feedback.
-
Follow up: #683 (comment) Short answer (and solution): the included sniff still does not comply with the PHPCS naming conventions. Once it does, things work fine. |
Beta Was this translation helpful? Give feedback.
-
@tomasnorre If I remember correctly, your issue is now solved by the sniff following the PHPCS naming conventions. Correct ? If so, can I close this discussion ? |
Beta Was this translation helpful? Give feedback.
Follow up: #683 (comment)
Short answer (and solution): the included sniff still does not comply with the PHPCS naming conventions. Once it does, things work fine.