Skip to content

Commit

Permalink
update WPCS definitions to v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Nov 11, 2023
1 parent bc263e8 commit aa6d8c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"forum": "https://wordpress.org/support/plugin/cachify"
},
"require": {
"php": ">=5.2.0",
"php": ">=5.6",
"composer/installers": "~1.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^v0.7",
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0",
"matthiasmullie/minify": "^1.3",
"phpunit/phpunit": "^5|^7|^9",
"squizlabs/php_codesniffer": "^3.7",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-coding-standards/wpcs": "^2.3",
"yoast/phpunit-polyfills": "^1.0"
"wp-coding-standards/wpcs": "^3.0",
"yoast/phpunit-polyfills": "^2.0"
},
"scripts": {
"post-install-cmd": [
Expand Down
6 changes: 5 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@

<!-- WordPress coding standards -->
<config name="minimum_supported_wp_version" value="4.7"/>
<rule ref="WordPress"/>
<rule ref="WordPress">
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="cachify"/>
Expand Down

0 comments on commit aa6d8c8

Please sign in to comment.