Skip to content

Commit 7262d7b

Browse files
authored
[CMSP-616] Update WPCS to 3.0 (#4)
* bump wpcs and vipwpcs to 3.0 * update short ternary exclusion * allow short arrays
1 parent 01259d9 commit 7262d7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Pantheon-WP/ruleset.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<!-- Rulesets to use -->
1414
<rule ref="PHPCompatibilityWP" />
1515
<rule ref="WordPress-Core">
16-
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
16+
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
1717
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
1818
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
1919
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
2020
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
2121
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
22-
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
22+
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
2323
<!--
2424
The following was written by Ryan McCue in the HM Coding Standards.
2525
I tend to agree with the argument that Yoda conditions are ridiculous

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"minimum-stability": "dev",
1313
"prefer-stable": true,
1414
"require": {
15-
"automattic/vipwpcs": "^2.3",
15+
"automattic/vipwpcs": "^3.0",
1616
"fig-r/psr2r-sniffer": "^1.5",
1717
"phpcompatibility/phpcompatibility-wp": "^2.1",
18-
"wp-coding-standards/wpcs": "^2.3"
18+
"wp-coding-standards/wpcs": "^3.0"
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "9.6.x-dev",

0 commit comments

Comments
 (0)