| 1 |
|
| 2 |
parameters: |
| 3 |
# Target PHP version for analysis |
| 4 |
phpVersion: 70400 |
| 5 |
|
| 6 |
# Strictness level: start at 5 and increase over time |
| 7 |
level: 5 |
| 8 |
|
| 9 |
# Specify folders/files to analyze |
| 10 |
paths: |
| 11 |
- core |
| 12 |
- booktics.php |
| 13 |
|
| 14 |
# Ignore third-party/vendor code (if applicable) |
| 15 |
excludePaths: |
| 16 |
analyse: |
| 17 |
- */vendor/* |
| 18 |
- */node_modules/* |
| 19 |
analyseAndScan: |
| 20 |
- */tests/data/* |
| 21 |
- */base/some-generated-file.php |
| 22 |
|
| 23 |
# Optional: suppress PHPDoc auto-return warnings |
| 24 |
checkExplicitMixedMissingReturn: false |
| 25 |
|
| 26 |
parallel: |
| 27 |
maximumNumberOfProcesses: 2 |
| 28 |
|
| 29 |
# Common false-positive suppression (WordPress functions, globals) |
| 30 |
ignoreErrors: |
| 31 |
- '#Call to unknown function (do_action|apply_filters|add_action|add_filter|__|_e|esc_html|esc_attr).*#' |
| 32 |
- '#Access to an undefined property\$.*#' |
| 33 |
- '#Function .* not found.*#' |
| 34 |
|
| 35 |
# Do not warn on unmatched ignore patterns |
| 36 |
reportUnmatchedIgnoredErrors: false |
| 37 |
|
| 38 |
# Cache config (improves speed on reruns) |
| 39 |
tmpDir: %currentWorkingDirectory%/phpstan-cache |
| 40 |
|
| 41 |
# Optional: baseline on existing errors to focus on new ones only |
| 42 |
# baseline: phpstan-baseline.neon |
| 43 |
|