-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
40 lines (31 loc) · 1.36 KB
/
phpstan.neon.dist
File metadata and controls
40 lines (31 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# PHPStan configuration for GitHub Actions.
# Include PHPStan for WordPress configuration.
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
# Parameters
parameters:
# Analyse against the minimum supported PHP version.
# This flags features (union types, enums, str_contains, etc.) that would
# fail on older PHP versions regardless of which PHP version PHPStan runs on.
phpVersion: 70100
# Paths to scan
paths:
- src/
# Paths to exclude
excludePaths:
- src/views/
# Location of WordPress Plugins for PHPStan to scan, building symbols.
scanDirectories:
- /home/runner/work/convertkit-wordpress-libraries/convertkit-wordpress-libraries/wordpress/wp-content/plugins
# Location of constants for PHPStan to scan, building symbols.
scanFiles:
- /home/runner/work/convertkit-wordpress-libraries/convertkit-wordpress-libraries/wordpress/wp-config.php
# Don't report unmatched ignored errors on older PHP versions (7.2, 7.3)
reportUnmatchedIgnoredErrors: false
# Ignore the following errors, as PHPStan and PHPStan for WordPress haven't correctly registered symbols,
# so they're false positives.
ignoreErrors:
- '#Constant WPINC not found#'
# Should not need to edit anything below here
# Rule Level: https://phpstan.org/user-guide/rule-levels
level: 5