|
35 | 35 | "ci": [ |
36 | 36 | "@ci:static" |
37 | 37 | ], |
38 | | - "ci:php:sniff": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests", |
| 38 | + "ci:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots bin src tests", |
| 39 | + "ci:php:sniffer": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests", |
39 | 40 | "ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon", |
40 | 41 | "ci:static": [ |
41 | | - "@ci:php:sniff", |
| 42 | + "@ci:php:fixer", |
| 43 | + "@ci:php:sniffer", |
42 | 44 | "@ci:php:stan" |
43 | 45 | ], |
44 | 46 | "fix:php": [ |
45 | | - "@fix:php:sniff" |
| 47 | + "@fix:php:fixer", |
| 48 | + "@fix:php:sniffer" |
46 | 49 | ], |
47 | | - "fix:php:sniff": "@php ./.phive/phpcbf.phar --standard=config/phpcs.xml bin src tests", |
| 50 | + "fix:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix bin src tests", |
| 51 | + "fix:php:sniffer": "@php ./.phive/phpcbf.phar --standard=config/phpcs.xml bin src tests", |
48 | 52 | "phpstan:baseline": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon" |
49 | 53 | }, |
50 | 54 | "scripts-descriptions": { |
51 | 55 | "ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).", |
52 | | - "ci:php:sniff": "Checks the code style with PHP_CodeSniffer.", |
| 56 | + "ci:php:fixer": "Checks the code style with PHP CS Fixer.", |
| 57 | + "ci:php:sniffer": "Checks the code style with PHP_CodeSniffer.", |
53 | 58 | "ci:php:stan": "Checks the types with PHPStan.", |
54 | 59 | "ci:static": "Runs all static code analysis checks for the code.", |
55 | 60 | "fix:php": "Autofixes all autofixable issues in the PHP code.", |
56 | | - "fix:php:sniff": "Fixes autofixable issues found by PHP_CodeSniffer.", |
| 61 | + "fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.", |
| 62 | + "fix:php:sniffer": "Fixes autofixable issues found by PHP_CodeSniffer.", |
57 | 63 | "phpstand:baseline": "Updates the PHPStan baseline file to match the code." |
58 | 64 | } |
59 | 65 | } |
0 commit comments