forked from wp-media/wp-rocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
53 lines (53 loc) · 2.48 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 4
inferPrivatePropertyTypeFromConstructor: true
paths:
# Test only the new architecture for now.
- %currentWorkingDirectory%/inc/Engine/
- %currentWorkingDirectory%/inc/Addon/
- %currentWorkingDirectory%/inc/ThirdParty/
- %currentWorkingDirectory%/tests/Integration/
- %currentWorkingDirectory%/tests/Unit/
bootstrapFiles:
# Must be first
- %currentWorkingDirectory%/inc/functions/options.php
# PHPStan bootstrap
- %currentWorkingDirectory%/tests/phpstan/phpstan-bootstrap.php
# Procedural code
- %currentWorkingDirectory%/inc/constants.php
- %currentWorkingDirectory%/inc/common/purge.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
scanDirectories:
- %currentWorkingDirectory%/inc/Dependencies/ActionScheduler
- %currentWorkingDirectory%/tests/Fixtures/
- %currentWorkingDirectory%/vendor/antecedent/patchwork/
- %currentWorkingDirectory%/vendor/wpackagist-plugin/cloudflare/
- %currentWorkingDirectory%/vendor/wpackagist-plugin/amp/
- %currentWorkingDirectory%/vendor/wpackagist-plugin/hummingbird-performance/
- %currentWorkingDirectory%/vendor/wpackagist-plugin/the-events-calendar/
- %currentWorkingDirectory%/vendor/wpackagist-plugin/woocommerce/
scanFiles:
- %currentWorkingDirectory%/inc/admin/upgrader.php
- %currentWorkingDirectory%/inc/admin/options.php
- %currentWorkingDirectory%/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- %currentWorkingDirectory%/vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
- %currentWorkingDirectory%/wp-rocket.php
excludePaths:
- %currentWorkingDirectory%/inc/vendors/
# These need plugin stubs!
- %currentWorkingDirectory%/inc/classes/subscriber/third-party/
- %currentWorkingDirectory%/inc/3rd-party/