-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
29 lines (29 loc) · 1.2 KB
/
phpstan.neon
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
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 8 # set 'max' or '9' to check mixed values
scanFiles:
tmpDir: tmp/cache/phpstan
paths:
- src/
excludePaths:
analyse:
- src/vendor/*
- tests/codeception/*
# Not supposed to be run as standalone, this file is meant to be copied. This file causes PHPStan to fail the analysis, prob a require issue
- src/class/theme/class-taxonomy-items-standard.php
# Not supposed to be run as standalone, this file is meant to be copied. This file causes PHPStan to fail the analysis, prob a require issue
- src/class/theme/class-taxonomy-people-standard.php
bootstrapFiles:
# Bootstrap with constants not defined by default
- tests/bootstrap-testing.php
ignoreErrors:
- '#Variable method call on#'
- '#Path in require_once\(\) "./wp-admin/includes#'
dynamicConstantNames:
- DOING_CRON
- WP_DEBUG_LOG
# I may change the path in the future
- Lumiere\Plugins\Plugins_Detect::SUBFOLDER_PLUGINS_BIT