Files
wp-plugin-starter-template-…/phpstan.neon
Marcus Quinn 0e906eb981 fix: remove redundant excludePaths.analyse block in phpstan.neon (#52)
Addresses CodeRabbit review feedback from PR #13. The excludePaths
section had both 'analyse' and 'analyseAndScan' with identical paths,
which is redundant. Since analyseAndScan is the superset (excludes from
both analysis and file scanning), the 'analyse' block is unnecessary.

Closes #44
2026-03-16 22:44:38 +00:00

26 lines
860 B
Plaintext

parameters:
level: 5
paths:
- includes
- admin
- wp-plugin-starter-template.php
excludePaths:
analyseAndScan:
- vendor
- node_modules
- tests
- bin
- build
- dist
ignoreErrors:
- '#Function apply_filters invoked with [0-9]+ parameters, 2 required.#'
- '#Function [a-zA-Z0-9_]+ not found.#'
- '#Call to static method [a-zA-Z0-9_:\\(\\)]+ on an unknown class [a-zA-Z0-9_]+.#'
- '#Function do_action invoked with [0-9]+ parameters, 1 required.#'
- '#Function add_action invoked with [0-9]+ parameters, 2 required.#'
- '#Function add_filter invoked with [0-9]+ parameters, 2 required.#'
reportUnmatchedIgnoredErrors: false
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon