| 1 |
includes: |
| 2 |
# Pre-existing legacy findings captured so the job only gates NEW errors (WP-512). |
| 3 |
- phpstan-baseline.neon |
| 4 |
|
| 5 |
parameters: |
| 6 |
level: 5 |
| 7 |
# Some legacy inline @phpstan-ignore comments are unmatched under the current |
| 8 |
# ruleset (e.g. third-party SEO-plugin calls that no longer error). These are |
| 9 |
# "non-ignorable" so they can't be baselined; don't fail the build on them |
| 10 |
# (baseline adoption, WP-512). New genuine errors still fail the job. |
| 11 |
reportUnmatchedIgnoredErrors: false |
| 12 |
# The codebase uses PHP 8.0+ syntax (e.g. match expressions in |
| 13 |
# media-optimization/), so PHPStan must parse with the 8.0 grammar. |
| 14 |
phpVersion: 80000 |
| 15 |
paths: |
| 16 |
- . |
| 17 |
excludePaths: |
| 18 |
- vendor |
| 19 |
- otto/vendor |
| 20 |
- node_modules (?) |
| 21 |
- tests |
| 22 |
- assets |
| 23 |
- .gitlab |
| 24 |
|