-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
24 lines (23 loc) · 1010 Bytes
/
Copy pathphpstan.neon.dist
File metadata and controls
24 lines (23 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# PHPStan configuration for this features plugin.
#
# Extends the shared rtCamp baseline (level 5, WordPress-aware). The baseline
# already loads the szepeviktor/phpstan-wordpress extension exactly once, so do
# NOT include extension.neon here and do NOT rely on extension-installer for it
# (composer.json ignores it for extension-installer).
includes:
- vendor/rtcamp/wp-phpstan/phpstan.neon.dist
parameters:
# The plugin constants (PROJECT_NAME_FEATURES_*) are define()d in the root
# plugin file, which is not under `paths: inc`. Load it so PHPStan knows them.
bootstrapFiles:
- project-name-features.php
paths:
- inc
excludePaths:
# `assets/build` only exists after a block build; mark optional so PHPStan
# does not error when it is absent (no blocks, or before the first build).
- assets/build (?)
- vendor
# Optional: absent until `npm install` runs (a Composer-only checkout).
- node_modules (?)
- tests