-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
phpstan.neon
51 lines (45 loc) · 1.49 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
##
# Configuration file for PHPStan static code checking, see https://phpstan.org .
#
# Note that drupal-specific rules are automatically included by phpstan/extension-installer
# from vendor/mglaman/phpstan-drupal/extension.neon and vendor/mglaman/phpstan-drupal/rules.neon
# @see https://github.com/mglaman/phpstan-drupal
#
# Paths are passed as CLI arguments.
parameters:
level: 7
phpVersion: 80312
paths:
- web/modules/custom
- web/themes/custom
- web/sites/default/settings.php
- web/sites/default/includes
- tests
excludePaths:
- vendor/*
- node_modules/*
- ../*/vendor/*
- ../*/node_modules/*
ignoreErrors:
-
# Since tests and data providers do not have to have parameter docblocks,
# it is not possible to specify the type of the parameter, so we ignore
# this error.
message: '#.*no value type specified in iterable type array.#'
paths:
- web/modules/custom/*/tests/*
- web/themes/custom/*/tests/*
- tests/phpunit/*
-
# Hook implementations do not provide docblocks for parameters, so there
# is no way to provide this information.
message: '#.* with no value type specified in iterable type array#'
paths:
- web/modules/custom/*
- web/themes/custom/*
-
# Included settings files are not aware about global variables.
message: '#Variable .* might not be defined.#'
paths:
- web/sites/default/includes
reportUnmatched: false