-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
34 lines (30 loc) · 1.07 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
32
33
34
# Configuration for PHPStan
# https://phpstan.org/config-reference
includes:
# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
# Include this extension
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
parallel:
jobSize: 10
maximumNumberOfProcesses: 32
minimumNumberOfJobsPerProcess: 2
level: 5
inferPrivatePropertyTypeFromConstructor: true
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false
# Paths to be analyzed.
paths:
- %currentWorkingDirectory%/src
ignoreErrors:
# Uses func_get_args()
- '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#'
# Uses func_get_args()
- '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
- '#^Constant WP_CONTENT_DIR not found\.$#'
- '#^Constant WP_CONTENT_URL not found\.$#'
- '#^Constant WPMU_PLUGIN_URL not found\.$#'
- '#^Constant WP_PLUGIN_DIR not found\.$#'
- '#^Constant WP_PLUGIN_URL not found\.$#'