-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathphpstan.neon
79 lines (74 loc) · 2.72 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
includes:
- baselines/loader.neon
# - 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
# - vendor/spaze/phpstan-disallowed-calls/extension.neon
# - vendor-bin/larastan/vendor/larastan/larastan/extension.neon
# - vendor/ekino/phpstan-banned-code/extension.neon
# - vendor/ergebnis/phpstan-rules/rules.neon
# - vendor/phpstan/phpstan-strict-rules/rules.neon
# - vendor/roave/no-floaters/rules.neon
- vendor/symplify/phpstan-rules/config/code-complexity-rules.neon
# - vendor/symplify/phpstan-rules/config/configurable-rules.neon
# - vendor/symplify/phpstan-rules/config/naming-rules.neon
# - vendor/symplify/phpstan-rules/config/static-rules.neon
# - vendor/symplify/phpstan-rules/config/symplify-rules.neon
# - vendor/symplify/phpstan-rules/config/doctrine-rules.neon
# - vendor/symplify/phpstan-rules/config/phpunit-rules.neon
# - vendor/symplify/phpstan-rules/config/rector-rules.neon
# - vendor/symplify/phpstan-rules/config/symfony-rules.neon
parameters:
paths:
- src/
excludePaths:
- tests/Fixtures/
level: max
# level: 10
tmpDir: .build/phpstan
# errorFormat: symplify
errorFormat: friendly
friendly:
lineBefore: 3
lineAfter: 3
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
type_coverage:
declare: 100
param_type: 100
return_type: 100
constant_type: 100
property_type: 100
type_perfect:
narrow_param: true
narrow_return: true
null_over_false: true
no_mixed: true
no_mixed_property: true
no_mixed_caller: true
disallowedFunctionCalls:
-
function: 'env()'
message: 'use config() instead'
-
function: 'env_explode()'
message: 'use config() instead'
-
function: 'env_getcsv()'
message: 'use config() instead'
-
function: 'hydrate_pipe()'
message: 'use Pipe::with() instead'
ignoreErrors:
- identifier: argument.templateType
- identifier: argument.type
- identifier: binaryOp.invalid
- identifier: cast.string
- identifier: method.nonObject
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: return.type
- identifier: return.void
- identifier: symplify.noDynamicName
- identifier: typePerfect.noMixedMethodCaller