|
18 | 18 | "nerou/cli-parser": "^0.1" |
19 | 19 | }, |
20 | 20 | "require-dev": { |
21 | | - "squizlabs/php_codesniffer": "^4.0", |
22 | | - "humbug/box": "^3.16 || ^4.0" |
| 21 | + "humbug/box": "^3.16 || ^4.0", |
| 22 | + "rector/rector": "^2.0", |
| 23 | + "squizlabs/php_codesniffer": "^4.0" |
23 | 24 | }, |
24 | 25 | "prefer-stable": true, |
25 | 26 | "autoload": { |
|
37 | 38 | "phpcpd": "./tools/phpcpd src", |
38 | 39 | "psalm": "./tools/psalm --no-diff --use-baseline=psalm.baseline.xml --php-version=8.1", |
39 | 40 | "update-psalm-baseline": "./tools/psalm --no-diff --set-baseline=psalm.baseline.xml", |
| 41 | + "rector": "./vendor/bin/rector process --dry-run", |
40 | 42 | "build": "./vendor/bin/box compile", |
41 | 43 | "tests": [ |
42 | 44 | "@phpcs", |
43 | 45 | "@phpunit", |
44 | 46 | "@phpcpd", |
45 | | - "@psalm" |
| 47 | + "@psalm", |
| 48 | + "@rector" |
46 | 49 | ] |
47 | 50 | }, |
48 | 51 | "scripts-descriptions": { |
|
51 | 54 | "phpunit": "Runs unit/integration tests.", |
52 | 55 | "phpcpd": "Runs copied code finder.", |
53 | 56 | "psalm": "Runs static analysis.", |
54 | | - "psalm-stats": "Print files with unsafe types based on psalm.", |
55 | 57 | "update-psalm-baseline": "Updates baseline for psalm. CAUTION should not be run as a regular procedure!", |
56 | | - "lines": "Gathers statistics about lines of code.", |
| 58 | + "rector": "Runs PHP compatibility checks and code smell analysis.", |
57 | 59 | "build": "Build PHAR", |
58 | 60 | "tests": "Runs all available tests." |
59 | 61 | } |
|
0 commit comments