|
37 | 37 | "rawr/phpunit-data-provider": "3.3.1", |
38 | 38 | "rector/rector": "1.2.10 || 2.1.7", |
39 | 39 | "rector/type-perfect": "1.0.0 || 2.1.0", |
| 40 | + "squizlabs/php_codesniffer": "4.0.1", |
40 | 41 | "thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.1" |
41 | 42 | }, |
42 | 43 | "suggest": { |
|
75 | 76 | "check:dynamic": [ |
76 | 77 | "@check:tests" |
77 | 78 | ], |
| 79 | + "check:php:codesniffer": "phpcs --standard=config/phpcs.xml config src tests", |
78 | 80 | "check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin src tests config", |
79 | 81 | "check:php:lint": "parallel-lint src tests config bin", |
80 | 82 | "check:php:rector": "rector --no-progress-bar --dry-run --config=config/rector.php", |
81 | 83 | "check:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon", |
82 | 84 | "check:static": [ |
83 | 85 | "@check:composer:normalize", |
84 | 86 | "@check:php:fixer", |
| 87 | + "@check:php:codesniffer", |
85 | 88 | "@check:php:lint", |
86 | 89 | "@check:php:rector", |
87 | 90 | "@check:php:stan" |
|
99 | 102 | "fix:php": [ |
100 | 103 | "@fix:composer:normalize", |
101 | 104 | "@fix:php:rector", |
| 105 | + "@fix:php:codesniffer", |
102 | 106 | "@fix:php:fixer" |
103 | 107 | ], |
| 108 | + "fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml config src tests", |
104 | 109 | "fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin src tests", |
105 | 110 | "fix:php:rector": "rector --config=config/rector.php", |
106 | 111 | "phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline" |
|
109 | 114 | "check": "Runs all dynamic and static code checks.", |
110 | 115 | "check:composer:normalize": "Checks the formatting and structure of the composer.json.", |
111 | 116 | "check:dynamic": "Runs all dynamic code checks (i.e., currently, the unit tests).", |
| 117 | + "check:php:codesniffer": "Checks the code style with PHP_CodeSniffer.", |
112 | 118 | "check:php:fixer": "Checks the code style with PHP CS Fixer.", |
113 | 119 | "check:php:lint": "Checks the syntax of the PHP code.", |
114 | 120 | "check:php:rector": "Checks the code for possible code updates and refactoring.", |
|
121 | 127 | "fix": "Runs all fixers", |
122 | 128 | "fix:composer:normalize": "Reformats and sorts the composer.json file.", |
123 | 129 | "fix:php": "Autofixes all autofixable issues in the PHP code.", |
| 130 | + "fix:php:codesniffer": "Reformats the code with PHP_CodeSniffer.", |
124 | 131 | "fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.", |
125 | 132 | "fix:php:rector": "Fixes autofixable issues found by Rector.", |
126 | 133 | "phpstan:baseline": "Updates the PHPStan baseline file to match the code." |
|
0 commit comments