We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 006eca0 + 3c0f6fa commit 75d9b6cCopy full SHA for 75d9b6c
WP_CLI_CS/ruleset.xml
@@ -72,6 +72,12 @@
72
<!-- Make some allowance for the fact that the code will be run in a command-line environment. -->
73
<exclude name="Generic.PHP.BacktickOperator"/>
74
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
81
</rule>
82
83
0 commit comments