Skip to content

Commit 1a38ba7

Browse files
committed
[CLEANUP] Standardize the composer.json
1 parent d6bf39b commit 1a38ba7

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ jobs:
104104
matrix:
105105
command:
106106
- composer:normalize
107-
- php:fixer
108-
- php:codesniffer
107+
- php:cs-fixer
108+
- php:sniff
109109
- php:stan
110110
- php:rector
111111
php-version:

composer.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@
7676
"@check:static",
7777
"@check:dynamic"
7878
],
79-
"check:composer:normalize": "\"./.phive/composer-normalize\" --dry-run",
79+
"check:composer:normalize": "\"./.phive/composer-normalize\" --no-check-lock --dry-run",
8080
"check:dynamic": [
8181
"@check:tests"
8282
],
83-
"check:php:codesniffer": "phpcs --standard=./Build/phpcs/config.xml Build bin src tests",
84-
"check:php:fixer": "\"./.phive/php-cs-fixer\" --config=./Build/php-cs-fixer/config.php fix --dry-run -v --show-progress=dots --diff Build bin src tests",
83+
"check:php:cs-fixer": "\"./.phive/php-cs-fixer\" fix --config=./Build/php-cs-fixer/config.php -v --dry-run --diff --show-progress=dots Build bin src tests",
8584
"check:php:lint": "parallel-lint Build bin src tests",
8685
"check:php:rector": "rector process --no-progress-bar --dry-run --config=./Build/rector/config.php",
87-
"check:php:stan": "phpstan --no-progress --configuration=./Build/phpstan/phpstan.neon",
86+
"check:php:sniff": "phpcs --standard=./Build/phpcs/config.xml Build bin src tests",
87+
"check:php:stan": "phpstan --no-progress -v --configuration=./Build/phpstan/phpstan.neon",
8888
"check:static": [
8989
"@check:composer:normalize",
90-
"@check:php:fixer",
91-
"@check:php:codesniffer",
9290
"@check:php:lint",
9391
"@check:php:rector",
94-
"@check:php:stan"
92+
"@check:php:sniff",
93+
"@check:php:stan",
94+
"@check:php:cs-fixer"
9595
],
9696
"check:tests": [
9797
"@check:tests:unit"
@@ -106,35 +106,35 @@
106106
"fix:php": [
107107
"@fix:composer:normalize",
108108
"@fix:php:rector",
109-
"@fix:php:codesniffer",
110-
"@fix:php:fixer"
109+
"@fix:php:sniff",
110+
"@fix:php:cs-fixer"
111111
],
112-
"fix:php:codesniffer": "phpcbf --standard=./Build/phpcs/config.xml Build bin src tests",
113-
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=./Build/php-cs-fixer/config.php fix Build bin src tests",
112+
"fix:php:cs-fixer": "\"./.phive/php-cs-fixer\" fix --config=./Build/php-cs-fixer/config.php Build bin src tests",
114113
"fix:php:rector": "rector process --config=./Build/rector/config.php",
115-
"phpstan:baseline": "phpstan --configuration=./Build/phpstan/phpstan.neon --generate-baseline=./Build/phpstan/phpstan-baseline.neon --allow-empty-baseline",
114+
"fix:php:sniff": "phpcbf --standard=./Build/phpcs/config.xml Build bin src tests",
115+
"phpstan:baseline": "phpstan --configuration=./Build/phpstan/phpstan.neon --allow-empty-baseline --generate-baseline=./Build/phpstan/phpstan-baseline.neon",
116116
"phpstan:clearcache": "phpstan clear-result-cache --configuration=./Build/phpstan/phpstan.neon"
117117
},
118118
"scripts-descriptions": {
119119
"check": "Runs all dynamic and static code checks.",
120-
"check:composer:normalize": "Checks the formatting and structure of the composer.json.",
120+
"check:composer:normalize": "Checks the composer.json.",
121121
"check:dynamic": "Runs all dynamic code checks (i.e., currently, the unit tests).",
122-
"check:php:codesniffer": "Checks the code style with PHP_CodeSniffer.",
123-
"check:php:fixer": "Checks the code style with PHP CS Fixer.",
124-
"check:php:lint": "Checks the syntax of the PHP code.",
125-
"check:php:rector": "Checks the code for possible code updates and refactoring.",
126-
"check:php:stan": "Checks the types with PHPStan.",
127-
"check:static": "Runs all static code analysis checks for the code.",
122+
"check:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).",
123+
"check:php:lint": "Lints the PHP files for syntax errors.",
124+
"check:php:rector": "Checks for code for changes by Rector.",
125+
"check:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).",
126+
"check:php:stan": "Checks the PHP types using PHPStan.",
127+
"check:static": "Runs all static code checks (syntax, style, types).",
128128
"check:tests": "Runs all dynamic tests (i.e., currently, the unit tests).",
129129
"check:tests:coverage": "Runs the unit tests with code coverage.",
130130
"check:tests:sof": "Runs the unit tests and stops at the first failure.",
131-
"check:tests:unit": "Runs all unit tests.",
132-
"fix": "Runs all fixers",
133-
"fix:composer:normalize": "Reformats and sorts the composer.json file.",
134-
"fix:php": "Autofixes all autofixable issues in the PHP code.",
135-
"fix:php:codesniffer": "Reformats the code with PHP_CodeSniffer.",
136-
"fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.",
137-
"fix:php:rector": "Fixes autofixable issues found by Rector.",
131+
"check:tests:unit": "Runs the unit tests.",
132+
"fix": "Runs all automatic code style fixes.",
133+
"fix:composer:normalize": "Normalizes composer.json file content.",
134+
"fix:php": "Runs all fixers for the PHP code.",
135+
"fix:php:cs-fixer": "Fixes the code style with PHP-CS-Fixer.",
136+
"fix:php:rector": "Updates the code with Rector.",
137+
"fix:php:sniff": "Fixes the code style with PHP_CodeSniffer.",
138138
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.",
139139
"phpstan:clearcache": "Clears the PHPStan cache."
140140
}

0 commit comments

Comments
 (0)