Skip to content

Commit 8fdeff4

Browse files
committed
add: require dev phpcs packages used locally, scripts.
1 parent c8a9864 commit 8fdeff4

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

composer.json

+24-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,29 @@
2828
},
2929
"require-dev": {
3030
"phpunit/phpunit": "^11.5",
31-
"phpstan/phpstan": "^2.1"
31+
"phpstan/phpstan": "^2.1",
32+
"squizlabs/php_codesniffer": "^3.11",
33+
"phpcompatibility/php-compatibility": "^9.3",
34+
"phpcompatibility/phpcompatibility-wp": "^2.1",
35+
"wp-coding-standards/wpcs": "^3.1"
36+
},
37+
"config": {
38+
"allow-plugins": {
39+
"dealerdirect/phpcodesniffer-composer-installer": true
40+
}
41+
},
42+
"scripts": {
43+
"test:unit": "vendor/bin/phpunit",
44+
"analyze": "vendor/bin/phpstan",
45+
"sniff": "vendor/bin/phpcs",
46+
"test": [
47+
"@analyze",
48+
"@test:unit",
49+
"@sniff"
50+
],
51+
"test:dev": [
52+
"phpstan",
53+
"phpunit"
54+
]
3255
}
3356
}

0 commit comments

Comments
 (0)