|
28 | 28 | "phpunit/phpcov": "^9.0.2", |
29 | 29 | "phpunit/phpunit": "^10.5.16", |
30 | 30 | "predis/predis": "^1.1 || ^2.0", |
31 | | - "rector/rector": "1.2.1" |
| 31 | + "rector/rector": "1.2.2" |
32 | 32 | }, |
33 | 33 | "replace": { |
34 | 34 | "codeigniter4/framework": "self.version" |
|
92 | 92 | ], |
93 | 93 | "analyze": [ |
94 | 94 | "Composer\\Config::disableProcessTimeout", |
95 | | - "bash -c \"XDEBUG_MODE=off vendor/bin/phpstan analyse\"", |
| 95 | + "@phpstan:check", |
96 | 96 | "vendor/bin/rector process --dry-run" |
97 | 97 | ], |
98 | 98 | "cs": [ |
99 | 99 | "Composer\\Config::disableProcessTimeout", |
100 | | - "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php", |
101 | | - "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php", |
102 | | - "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.tests.php", |
103 | | - "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff" |
| 100 | + "utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php", |
| 101 | + "utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff --config=.php-cs-fixer.no-header.php", |
| 102 | + "utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff --config=.php-cs-fixer.tests.php", |
| 103 | + "utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff" |
104 | 104 | ], |
105 | 105 | "cs-fix": [ |
106 | 106 | "Composer\\Config::disableProcessTimeout", |
|
110 | 110 | "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff" |
111 | 111 | ], |
112 | 112 | "metrics": "utils/vendor/bin/phpmetrics --config=phpmetrics.json", |
| 113 | + "phpstan:baseline": "vendor/bin/phpstan analyse --ansi --generate-baseline=phpstan-baseline.php", |
| 114 | + "phpstan:check": "vendor/bin/phpstan analyse --verbose --ansi", |
113 | 115 | "sa": "@analyze", |
114 | 116 | "style": "@cs-fix", |
115 | 117 | "test": "phpunit" |
|
119 | 121 | "cs": "Check the coding style", |
120 | 122 | "cs-fix": "Fix the coding style", |
121 | 123 | "metrics": "Run PhpMetrics", |
| 124 | + "phpstan:baseline": "Run PHPStan then dump all errors to baseline", |
| 125 | + "phpstan:check": "Run PHPStan with support for identifiers", |
122 | 126 | "test": "Run unit tests" |
123 | 127 | } |
124 | 128 | } |
0 commit comments