Update linting rules to force short array syntax

This commit is contained in:
Daniel Hensby 2020-04-20 18:51:13 +01:00
parent 9aba767e36
commit 6367c3ba0f
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -25,6 +25,11 @@
</properties>
</rule>
<!-- use short array syntax (less thirdparty) -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax">
<exclude-pattern>/thirdparty/*</exclude-pattern>
</rule>
<!-- include php files only -->
<arg name="extensions" value="php,lib,inc,php5"/>