/
shipmonk.neon
53 lines (52 loc) · 1.7 KB
/
shipmonk.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
includes:
- ../../vendor/shipmonk/phpstan-rules/rules.neon
parameters:
shipmonkRules:
allowComparingOnlyComparableTypes:
enabled: false
allowNamedArgumentOnlyInAttributes:
enabled: false
backedEnumGenerics:
enabled: true
enforceReadonlyPublicProperty:
enabled: false
forbidAssignmentNotMatchingVarDoc:
enabled: true
forbidCustomFunctions:
enabled: false
list: []
forbidEnumInFunctionArguments:
enabled: true
forbidFetchOnMixed:
enabled: true
forbidMatchDefaultArmForEnums:
enabled: true
forbidMethodCallOnMixed:
enabled: true
forbidNullInAssignOperations:
enabled: true
blacklist: ['??=']
forbidNullInBinaryOperations:
enabled: true
blacklist: [
'**', '!=', '==', '+', 'and', 'or', '&&', '||', '%', '-', '/', '*', # checked by phpstan-strict-rules
'>', '>=', '<', '<=', '<=>', # allow comparisons
'===', '!==', '??' # valid
]
forbidVariableTypeOverwriting:
enabled: true
forbidUnsetClassField:
enabled: true
forbidUselessNullableReturn:
enabled: false
forbidUnusedException:
enabled: true
forbidUnusedMatchResult:
enabled: true
requirePreviousExceptionPass:
enabled: true
reportEvenIfExceptionIsNotAcceptableByRethrownOne: false
uselessPrivatePropertyDefaultValue:
enabled: true
uselessPrivatePropertyNullability:
enabled: true