-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
22 lines (21 loc) · 948 Bytes
/
Copy pathphpstan.neon
File metadata and controls
22 lines (21 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
parameters:
paths:
- '%rootDir%/../../../web/modules/custom'
excludes_analyse:
- 'web/sites/default'
fileExtensions:
- php
- module
- inc
level: 1
ignoreErrors:
# While technically correct, it is used in so many places it would be
# too much work to refactor for now.
- '#\\Drupal calls should be avoided in classes, use dependency injection instead#'
# This is just how Drupal DI works.
- '#Unsafe usage of new static\(\)#'
# For some reason some functions are borking - can try to fix this when we have some more time.
- '#Function \S*feature_\S* not found( while trying to analyse it \- autoloading is probably not configured properly)?\.#'
- '#Function template_\S* not found while trying to analyse it \- autoloading is probably not configured properly\.#'
includes:
- vendor/mglaman/phpstan-drupal/extension.neon