forked from wp-media/wp-rocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
36 lines (36 loc) · 1.72 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
35
36
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 4
checkMissingIterableValueType: false
inferPrivatePropertyTypeFromConstructor: true
paths:
# Test only the new architecture for now.
- %currentWorkingDirectory%/inc/Engine/
- %currentWorkingDirectory%/inc/Addon/
- %currentWorkingDirectory%/inc/ThirdParty/
bootstrapFiles:
- %currentWorkingDirectory%/tests/phpstan/bootstrap.php
# Must be first
- %currentWorkingDirectory%/inc/functions/options.php
# Procedural code
- %currentWorkingDirectory%/inc/constants.php
- %currentWorkingDirectory%/inc/API/bypass.php
- %currentWorkingDirectory%/inc/3rd-party/plugins/autoptimize.php
- %currentWorkingDirectory%/inc/admin/ui/notices.php
- %currentWorkingDirectory%/inc/functions/admin.php
- %currentWorkingDirectory%/inc/functions/api.php
- %currentWorkingDirectory%/inc/functions/files.php
- %currentWorkingDirectory%/inc/functions/formatting.php
- %currentWorkingDirectory%/inc/functions/htaccess.php
- %currentWorkingDirectory%/inc/functions/i18n.php
- %currentWorkingDirectory%/inc/functions/posts.php
# Composer autoloader "exclude-from-classmap"
- %currentWorkingDirectory%/inc/classes/class-wp-rocket-requirements-check.php
- %currentWorkingDirectory%/inc/vendors/classes/class-rocket-mobile-detect.php
excludePaths:
- %currentWorkingDirectory%/inc/vendors/
# These need plugin stubs!
- %currentWorkingDirectory%/inc/classes/subscriber/third-party/
- %currentWorkingDirectory%/inc/3rd-party/