Add exclusion rule to PHPCS config for TODO comments (https://github.com/woocommerce/woocommerce-admin/pull/5388)
TODO comments are an established practice in this repo, with ~100 occurrences. This removes the warning in our PHP linter about it. This warning was blocking some Git commits being made due to the linting in the pre-commit hook.
This commit is contained in:
parent
59e7681207
commit
f0d0ed2e76
|
@ -52,4 +52,9 @@
|
||||||
<exclude-pattern>src/</exclude-pattern>
|
<exclude-pattern>src/</exclude-pattern>
|
||||||
<exclude-pattern>tests/</exclude-pattern>
|
<exclude-pattern>tests/</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<rule ref="Generic.Commenting.Todo">
|
||||||
|
<exclude-pattern>src/</exclude-pattern>
|
||||||
|
<exclude-pattern>tests/</exclude-pattern>
|
||||||
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue