Skip to content

Commit 75d9b6c

Browse files
authored
Exclude rules that disallow short array syntax & short ternaries (#74)
Exclude rules that disallow short array syntax & short ternaries
2 parents 006eca0 + 3c0f6fa commit 75d9b6c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WP_CLI_CS/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@
7272
<!-- Make some allowance for the fact that the code will be run in a command-line environment. -->
7373
<exclude name="Generic.PHP.BacktickOperator"/>
7474

75+
<!-- We want to stick with short array syntax for WP-CLI. -->
76+
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
77+
78+
<!-- Keep short ternaries around for WP-CLI. -->
79+
<exclude name="WordPress.PHP.DisallowShortTernary"/>
80+
7581
</rule>
7682

7783

0 commit comments

Comments
 (0)