-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-all.neon
60 lines (55 loc) · 2.03 KB
/
phpstan-all.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
52
53
54
55
56
57
58
59
60
parameters:
level: 8
tmpDir: output/cache/phpstan
paths:
- src
- tests
- .php-cs-fixer.php
excludePaths:
- tests/_support/_generated
# https://github.com/spaze/phpstan-disallowed-calls
disallowedFunctionCalls:
-
function:
- 'dump()'
- 'var_dump()'
- 'print()'
- 'print_r()'
- 'echo()'
- 'dd()'
- 'die()'
- 'exit()'
- 'eval()'
- 'debug_backtrace()'
- 'file_put_contents()'
- 'microtime()'
- 'sleep()'
message: 'you probably left a debug statement active in the code'
disallowedNamespaces:
-
namespace:
- PHPStan\*
- Spaze\PHPStan\*
message: 'these are not meant to be accessed'
disallowedMethodCalls:
-
method: 'Throwable::getTrace()'
message: 'do not leave these in'
errorTip: 'You probably left a debug statement'
-
method: 'Throwable::getTraceAsString()'
message: 'do not leave these in'
errorTip: 'You probably left a debug statement'
includes:
- phpstan-all-baseline.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
# Maybe later enable Symfony stuff, for now it isn't needed.
# vendor/phpstan/phpstan-symfony/extension.neon
# vendor/phpstan/phpstan-symfony/rules.neon
- vendor/spaze/phpstan-disallowed-calls/extension.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
# "Safe", the extension, is not yet installed, if this throws errors, install it.
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon