Skip to content

Commit

Permalink
Keep up with WPCS develop (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
stian-overasen committed Dec 6, 2022
1 parent c98d5c7 commit 37ff309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dekode/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>build/</exclude-pattern>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>public/content</exclude-pattern>

<!-- 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="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
</rule>

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"phpcompatibility/phpcompatibility-wp": "~2.1.3",
"wp-coding-standards/wpcs": "~2.3.0"
"wp-coding-standards/wpcs": "dev-develop"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29"
},
"minimum-stability": "dev",
"archive": {
"exclude": [
"/packages"
Expand Down

0 comments on commit 37ff309

Please sign in to comment.