composer.json
{
"name": "bmitch/codor",
"description": "Custom PHPCS sniffs to find Code Smells.",
"license": "MIT",
"authors": [
{
"name": "Bill Mitchell",
"email": "wkmitch@gmail.com"
}
],
"require": {
"php": ">=7.1.3",
"squizlabs/php_codesniffer": "^3.2.3"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"slevomat/coding-standard": "^6.4",
"symfony/phpunit-bridge": "^5.1"
},
"autoload": {
"psr-4": {
"Codor\\": "src/Codor/"
}
},
"autoload-dev": {
"psr-4": {
"Codor\\Tests\\": "tests"
},
"classmap": [
"vendor/squizlabs/php_codesniffer"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"bamarni/composer-bin-plugin": true
},
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"@composer bin all install --ansi"
],
"post-update-cmd": [
"@composer bin all update --ansi"
],
"bin": "echo 'bin not installed'",
"fix": [
"phpcbf -n --standard=phpcs.xml src/",
"phpcbf --standard=codor.xml src -spn",
"phpcbf --standard=psr2 src -sp"
],
"test": [
"@composer validate --strict",
"parallel-lint src tests",
"phpcs --standard=psr2 src -spn",
"phpcs --standard=codor.xml src -spn",
"simple-phpunit --debug --coverage-clover=coverage.xml",
"phpmd src text codesize,unusedcode,naming",
"phploc src",
"phpcpd src",
"churn run -p -vvv"
]
},
"scripts-descriptions": {
"fix": "Corrects some code violations.",
"test": "Runs the whole test suite."
}
}