Disable `DisallowShortArraySyntax` and `InternalInjectionMethod` sniffs for blocks files. (#42863)
* Disable some rules for blocks files * Add changelog
This commit is contained in:
parent
d3c497f7c0
commit
865ea6ada9
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: update
|
||||||
|
|
||||||
|
Add InternalInjection sniff and DisallowShortArraySyntax exceptions for blocks
|
|
@ -102,4 +102,22 @@
|
||||||
<rule ref="Squiz.Commenting.FileComment.Missing">
|
<rule ref="Squiz.Commenting.FileComment.Missing">
|
||||||
<exclude-pattern>tests/php/</exclude-pattern>
|
<exclude-pattern>tests/php/</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<!-- Temporary -->
|
||||||
|
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
|
||||||
|
<exclude-pattern>src/Blocks/</exclude-pattern>
|
||||||
|
<exclude-pattern>src/StoreApi/</exclude-pattern>
|
||||||
|
</rule>
|
||||||
|
|
||||||
|
<!-- Temporary -->
|
||||||
|
<rule ref="WooCommerce.Functions.InternalInjectionMethod.MissingFinal">
|
||||||
|
<exclude-pattern>src/Blocks/</exclude-pattern>
|
||||||
|
<exclude-pattern>src/StoreApi/</exclude-pattern>
|
||||||
|
</rule>
|
||||||
|
|
||||||
|
<!-- Temporary -->
|
||||||
|
<rule ref="WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag">
|
||||||
|
<exclude-pattern>src/Blocks/</exclude-pattern>
|
||||||
|
<exclude-pattern>src/StoreApi/</exclude-pattern>
|
||||||
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue