Skip to content

Commit

Permalink
add: require dev phpcs packages used locally, scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsehszroc committed Feb 17, 2025
1 parent c8a9864 commit 8fdeff4
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,29 @@
},
"require-dev": {
"phpunit/phpunit": "^11.5",
"phpstan/phpstan": "^2.1"
"phpstan/phpstan": "^2.1",
"squizlabs/php_codesniffer": "^3.11",
"phpcompatibility/php-compatibility": "^9.3",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-coding-standards/wpcs": "^3.1"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"test:unit": "vendor/bin/phpunit",
"analyze": "vendor/bin/phpstan",
"sniff": "vendor/bin/phpcs",
"test": [
"@analyze",
"@test:unit",
"@sniff"
],
"test:dev": [
"phpstan",
"phpunit"
]
}
}

0 comments on commit 8fdeff4

Please sign in to comment.