-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan.neon.example
35 lines (28 loc) · 1.22 KB
/
phpstan.neon.example
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
# PHPStan configuration for GitHub Actions.
# Include PHPStan for WordPress configuration.
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
# Parameters
parameters:
# Paths to scan
# This should comprise of the base Plugin PHP file, plus directories that contain Plugin PHP files
paths:
- woocommerce-convertkit.php
- admin/
- includes/
# Files that include Plugin-specific PHP constants
bootstrapFiles:
- woocommerce-convertkit.php
# Location of WordPress Plugins for PHPStan to scan, building symbols.
scanDirectories:
- /home/runner/work/convertkit-woocommerce/convertkit-woocommerce/wordpress/wp-content/plugins
# Location of constants for PHPStan to scan, building symbols.
scanFiles:
- /home/runner/work/convertkit-woocommerce/convertkit-woocommerce/wordpress/wp-config.php
# Should not need to edit anything below here
# Rule Level: https://phpstan.org/user-guide/rule-levels
level: 5
# Ignore the following errors, as PHPStan and PHPStan for WordPress haven't registered symbols for them yet,
# so they're false positives.
ignoreErrors:
- '#Call to an undefined method WC_Order_Item::get_product\(\).#'