Skip to content

Commit 29e8db8

Browse files
committed
Add more dev dependencies to check the code quality.
1 parent d9cf002 commit 29e8db8

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

composer.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,23 @@
3333
"phpunit/phpunit": "^9.5",
3434
"fakerphp/faker": "^1.17",
3535
"friendsofphp/php-cs-fixer": "^3.9.2",
36-
"squizlabs/php_codesniffer": "^3.7.1"
36+
"squizlabs/php_codesniffer": "^3.7.1",
37+
"phploc/phploc": "^7.0.2",
38+
"nunomaduro/phpinsights": "^v2.4.0",
39+
"bmitch/churn-php": "^1.7",
40+
"phpmetrics/phpmetrics": "^v2.8.1",
41+
"wapmorgan/php-deprecation-detector": "^2.0"
3742
},
3843
"scripts": {
3944
"test": "./vendor/bin/phpunit",
40-
"test-cov": "./vendor/bin/phpunit --coverage-html coverage",
41-
"cs-fix": "./vendor/bin/php-cs-fixer fix --allow-risky yes"
45+
"test-cov": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage",
46+
"cs-fix": "./vendor/bin/php-cs-fixer fix --allow-risky yes",
47+
"sniffer": "./vendor/bin/phpcs src/",
48+
"phploc": "./vendor/bin/phploc src/",
49+
"phpinsights": "./vendor/bin/phpinsights",
50+
"phpdd": "./vendor/bin/phpdd --target 7.4 src/",
51+
"phpmetrics": "./vendor/bin/phpmetrics --report-html=metrics src/",
52+
"churn": "./vendor/bin/churn run src/"
4253
},
4354
"options": {
4455
"symlink": false
@@ -55,5 +66,10 @@
5566
"tests"
5667
]
5768
}
69+
},
70+
"config": {
71+
"allow-plugins": {
72+
"dealerdirect/phpcodesniffer-composer-installer": true
73+
}
5874
}
5975
}

0 commit comments

Comments
 (0)