-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathphpstan-extra.neon
More file actions
30 lines (30 loc) · 982 Bytes
/
phpstan-extra.neon
File metadata and controls
30 lines (30 loc) · 982 Bytes
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
parameters:
# Disable all phpstan rules.
customRulesetUsed: true
excludePaths:
- /app/vendor/*
- */assets/src/lib/campaignmonitor/samples/*
- */tests/*
- */bootstrap/scripts/*
scanDirectories:
- /app
fileExtensions:
- php
- theme
- inc
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- message: '#^Calling debug_backtrace\(\) is forbidden, please change the code$#'
count: 1
path: /app/web/themes/custom/bootstrap/src/Bootstrap.php
- message: '#^Calling print_r\(\) is forbidden, please change the code$#'
count: 1
path: /app/web/themes/custom/bootstrap/src/Bootstrap.php
# Allow undefined constants to be ignored as they are not meant to be disallowed.
- message: '#^Cannot access constant#'
disallowedStaticCalls:
- method: 'Drupal::httpClient()'
message: 'please change the code'
disallowedNamespaces:
- class: 'GuzzleHttp\Client'
message: 'please change the code'