-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon.dist
31 lines (25 loc) · 1.02 KB
/
phpstan.neon.dist
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
# 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:
- convertkit.php
- includes/
# Files that include Plugin-specific PHP constants
bootstrapFiles:
- convertkit.php
# Location of WordPress Plugins for PHPStan to scan, building symbols.
scanDirectories:
- /home/runner/work/convertkit-gravity-forms/convertkit-gravity-forms/wordpress/wp-content/plugins
# 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:
- '#of method GFAddOn::add_note#'
- '#Property GFConvertKit::\$_#'