-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
54 lines (48 loc) · 1.67 KB
/
phpstan.neon.dist
File metadata and controls
54 lines (48 loc) · 1.67 KB
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
54
# 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
- vendor/dpanta94/phpstan-containers/extension.neon
parameters:
phpVersion: 80000
tmpDir: phpstan-cache
parallel:
jobSize: 10
maximumNumberOfProcesses: 10
minimumNumberOfJobsPerProcess: 2
processTimeout: 600.0
level: max
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
scanFiles:
- %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-tools-stubs.php
scanDirectories:
- vendor/
# Paths to be analyzed.
paths:
- index.php
- src
excludePaths:
analyseAndScan:
- vendor/codeception/codeception/autoload.php
- vendor/lucatume/wp-browser/includes/core-phpunit/includes/object-cache.php
- vendor/lucatume/wp-browser/includes/pluggables
- '**/node_modules/**'
# These underscore-prefixed functions are intentional cross-instance shared globals
# used to communicate across Strauss-prefixed copies of Harbor. PHPStan flags them
# as internal by convention, but that is not applicable here.
ignoreErrors:
-
identifier: function.internal
paths:
- src/Harbor/global-functions.php
- src/Harbor/Harbor.php
- src/Harbor/Utils/Version.php
- src/Harbor/API/Functions/Global_Function_Registry.php