Skip to content

Commit

Permalink
PHPCS: update dependencies & ruleset
Browse files Browse the repository at this point in the history
... as WPCS 3.0 was released.
  • Loading branch information
jrfnl committed Nov 23, 2023
1 parent b61ba04 commit 12cd518
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine"/>

<!-- Kind of defies the point of this class. -->
<exclude name="WordPress.PHP.StrictComparisons"/>
<exclude name="Universal.Operators.StrictComparisons"/>

<!-- else on new line is perfectly fine -->
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
Expand All @@ -51,6 +51,12 @@

<!-- This is deliberate to support both PHP 4 and 5. -->
<exclude name="Generic.Classes.DuplicateClassName.Found"/>

<!-- This library still supports PHP < 5.3. -->
<exclude name="Modernize.FunctionCalls.Dirname"/>

<!-- Renaming the files is for later. -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>

<rule ref="WordPress.Files.FileName">
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
"ext-ctype": "*"
},
"require-dev" : {
"squizlabs/php_codesniffer" : "^3.7.1",
"phpcompatibility/php-compatibility": "^9.3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "^2.0.0",
"wp-coding-standards/wpcs": "^3.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"php-parallel-lint/php-console-highlighter": "^1.0.0"
},
Expand Down

0 comments on commit 12cd518

Please sign in to comment.