Skip to content

Commit

Permalink
PHPCS ruleset: minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 8, 2024
1 parent feb739d commit fef3fb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@
</properties>
</rule>

<!-- In contrast to WPCS (40%), we allow a slightly higher percentage. -->
<rule ref="Squiz.PHP.CommentedOutCode">
<properties>
<property name="maxPercentage" value="50"/>
</properties>
</rule>


<!--
#############################################################################
Expand Down
3 changes: 1 addition & 2 deletions tests/Utility/InputValidator/IsValidRfc2616TokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public static function dataValidIntegers() {
* token = 1*<any CHAR except CTLs or separators>
*
* Disabling PHPCS checks for consistency with RFC 2616:
* phpcs:disable Squiz.PHP.CommentedOutCode.Found
* phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
* @phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
*
* @return array<string>
*/
Expand Down

0 comments on commit fef3fb6

Please sign in to comment.