PHP
In progress43 lint rules
Each bar is measured on real-world code against the default rule set of the reference tool, except PHP-CS-Fixer: measured with the @PER-CS rule set (the default of PHP-CS-Fixer 3 is @PSR12, which @PER-CS contains); the tick marks 85%. Ready means the first tool of each column is at least 85%; the others are shown for reference. How PHP is measured.
Parity
Section titled “Parity”Format
Lint
| Task | Compared with | Sudsy speed | Time (Sudsy / tool) | Peak memory (Sudsy / tool) |
|---|---|---|---|---|
| Format | PHP-CS-Fixer | 161× faster | 1.77 s / 285.46 s | 1161 / 70 MB |
| Lint | PHPStan | 84× faster | 1.44 s / 120.93 s | 1194 / 499 MB |
Presets
Section titled “Presets”A preset is an ordinary sudsy.yaml; use one with extends.
php/phpstan:extends: [preset:php/phpstan]
43 lint rules apply to PHP: browse them.