Skip to content

Commit

Permalink
chore: change phpcs ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed Apr 25, 2024
1 parent db88dc9 commit 2256a2c
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 24 deletions.
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"build": "sh bin/dist.sh",
"test": "vendor/bin/phpunit",
"lint": "vendor/bin/phpcs --standard=phpcs.xml",
"format": "vendor/bin/phpcbf --standard=phpcs.xml"
"lint": "vendor/bin/phpcs --standard=phpcs.xml --extensions=php -s",
"format": "vendor/bin/phpcbf --standard=phpcs.xml --report-summary --report-source"
},
"autoload": {
"files": [
Expand All @@ -50,10 +50,11 @@
"installer-disable": true
},
"require-dev": {
"wp-coding-standards/wpcs": "2.3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"wp-coding-standards/wpcs": "^2.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"phpunit/phpunit": "9.*",
"yoast/phpunit-polyfills": "^2.0"
"yoast/phpunit-polyfills": "^2.0",
"codeinwp/phpcs-ruleset": "dev-main"
},
"config": {
"allow-plugins": {
Expand Down
Loading

0 comments on commit 2256a2c

Please sign in to comment.