Skip to content

Commit

Permalink
Updates (#11)
Browse files Browse the repository at this point in the history
* Remove deprecated sniff & replace with new dependency

* Remove patch that is no longer needed

* Set minimum vipwpcs version, remove composer patching lib

---------

Co-authored-by: Justin Frydman <[email protected]>
  • Loading branch information
lindseyolson and defunctl authored Oct 13, 2023
1 parent b647606 commit 4639238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
"license": "MIT",
"require": {
"php": ">=8.0",
"automattic/vipwpcs": "*",
"automattic/vipwpcs": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1 | ^1.0",
"cweagans/composer-patches": "^1.7",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"slevomat/coding-standard": "^8.0",
"squizlabs/php_codesniffer": "^3.6"
Expand All @@ -30,16 +29,7 @@
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"enable-patching": true,
"patches": {
"wp-coding-standards/wpcs": {
"Add PHP 8 support until WordPress releases a new version": "https://github.com/WordPress/WordPress-Coding-Standards/commit/7cd46bed1e6a7a2af3fe24c7f4a044da3076d8f4.patch"
}
}
}
}
2 changes: 1 addition & 1 deletion lib/ModernTribe/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<rule ref="WordPressVIPMinimum">
<severity>3</severity>
<exclude name="WordPressVIPMinimum.Constants.ConstantString.NotCheckingConstantName" />
<exclude name="WordPressVIPMinimum.Variables.VariableAnalysis" />
<exclude name="VariableAnalysis" />
</rule>
<!-- Covers rule: Put spaces on both sides of the opening and closing parenthesis of
functions, methods, if, elseif, foreach, for, and switch blocks. -->
Expand Down

0 comments on commit 4639238

Please sign in to comment.