Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
53 lines (46 loc) 路 1.73 KB
/
Copy pathphpstan.neon
File metadata and controls
53 lines (46 loc) 路 1.73 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
##
# 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 declared in the `paths` key below, not passed as CLI
# arguments.
parameters:
level: 7
# PHPStan caches reflection data that embeds absolute paths into its own
# PHAR. The default cache directory is shared by every project on the machine,
# so entries left by a build that no longer exists break the next run. Keeping
# the cache beside this config scopes it to a single codebase.
tmpDir: .phpstan
paths:
#;< EXTENSION_MODULE
- web/modules/custom
#;> EXTENSION_MODULE
#;< EXTENSION_THEME
- web/themes/custom
#;> EXTENSION_THEME
excludePaths:
- vendor/*
- node_modules/*
- ../*/node_modules/*
#;< META
- web/modules/custom/your_extension/install.php
#;> META
ignoreErrors:
-
# Hook implementation docblocks carry only 'Implements hook_NAME().', so
# they declare neither iterable value types nor return types.
messages:
- '#.* no value type specified in iterable type array#'
- '#.* has no return type specified#'
reportUnmatched: false
-
# PHP resolves attribute classes lazily and PHPUnit 9.6 reads doc-comment
# metadata, so these are inert rather than broken on a Drupal 10 build.
# Rector writes them from the Drupal 11 set.
messages:
- '#^Attribute class PHPUnit\\Framework\\Attributes\\.+ does not exist\.$#'
reportUnmatched: false
reportUnmatchedIgnoredErrors: false