Skip to content

Commit

Permalink
Upgrade to WPCS 3 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
stian-overasen authored Aug 29, 2023
1 parent 37ff309 commit 0ca9e54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Dekode/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@

<!-- Rules -->
<rule ref="WordPress">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
</rule>

<rule ref="WordPress.NamingConventions.ValidHookName">
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
"DekodeInteraktiv"
],
"require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"phpcompatibility/phpcompatibility-wp": "~2.1.3",
"wp-coding-standards/wpcs": "dev-develop"
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpcompatibility/phpcompatibility-wp": "~2.1.4",
"wp-coding-standards/wpcs": "^3.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29"
},
"minimum-stability": "dev",
"archive": {
"exclude": [
"/packages"
Expand Down

0 comments on commit 0ca9e54

Please sign in to comment.