-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
42 lines (38 loc) · 1.22 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
includes:
- 'phpstan-baseline.neon'
- 'vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon'
- 'vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon'
- 'vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon'
- 'vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon'
parameters:
level: 'max'
paths:
- Classes
- Configuration
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false
cognitive_complexity:
class: 40
function: 9
disallowedFunctionCalls:
-
function:
- 'var_dump()'
- 'xdebug_break()'
message: 'Do not add debugging'
-
function: 'header()'
message: 'Use API instead'
disallowedStaticCalls:
-
method: 'TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump()'
message: 'Do not add debugging'
disallowedSuperglobals:
-
superglobal:
- '$_GET'
- '$_POST'
- '$_FILES'
- '$_SERVER'
message: 'Use API instead'