Skip to content

Commit

Permalink
Update linting rules to force short array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Apr 20, 2020
1 parent 9aba767 commit 6367c3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>

Expand Down

0 comments on commit 6367c3b

Please sign in to comment.