forked from glpi-project/glpi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon.dist
39 lines (36 loc) · 1.2 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
includes:
- .phpstan-baseline.php
parameters:
parallel:
maximumNumberOfProcesses: 2
level: 4
bootstrapFiles:
- stubs/glpi_constants.php
paths:
- ajax
- front
- inc
- install
- src
ignoreErrors:
- '/Instantiated class (DB|DBSlave) not found/'
- '/Instantiated class XHProfRuns_Default not found/'
- { message: '/Variable \$this might not be defined/', paths: [ 'inc/includes.php' ] }
- { message: '/Call to protected method setAjax\(\) of class Glpi\\Controller\\LegacyFileLoadController./', paths: [ 'ajax/*', 'front/*', 'inc/includes.php' ] }
- { message: '/Access to protected property/', paths: [ 'front/dropdown.common.php', 'front/dropdown.common.form.php' ] }
- { message: '/LDAP\\Connection/', reportUnmatched: false }
rules:
- GlpiProject\Tools\PHPStan\Rules\GlobalVarTypeRule
# Copy and uncomment this content into a "phpstan.neon" file to add your own config values
#
## Mandatory include:
#
#includes:
# - phpstan.neon.dist
#
## Custom config values
## Example: using more process that the default configuration
#
#parameters:
# parallel:
# maximumNumberOfProcesses: 8