Skip to content

Commit

Permalink
[CMSP-616] Update WPCS to 3.0 (#4)
Browse files Browse the repository at this point in the history
* bump wpcs and vipwpcs to 3.0

* update short ternary exclusion

* allow short arrays
  • Loading branch information
jazzsequence authored Sep 12, 2023
1 parent 01259d9 commit 7262d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Pantheon-WP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<!-- Rulesets to use -->
<rule ref="PHPCompatibilityWP" />
<rule ref="WordPress-Core">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
<!--
The following was written by Ryan McCue in the HM Coding Standards.
I tend to agree with the argument that Yoda conditions are ridiculous
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"automattic/vipwpcs": "^2.3",
"automattic/vipwpcs": "^3.0",
"fig-r/psr2r-sniffer": "^1.5",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-coding-standards/wpcs": "^2.3"
"wp-coding-standards/wpcs": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "9.6.x-dev",
Expand Down

0 comments on commit 7262d7b

Please sign in to comment.