-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.neon
66 lines (63 loc) · 2.14 KB
/
rules.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
services:
- class: Lipe\Lib\Phpstan\Rules\Expressions\NoCompactRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Methods\NoConstructorParameterWithDefaultValueRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Methods\NoParamTypeRemovalRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Methods\PrivateInFinalClassRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Methods\ReturnNullOverFalseRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Methods\NoUnknownMethodCallerRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Statements\NoArrayAccessOnObjectRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Statements\NoIssetOnObjectRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Statements\NoSwitchRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Statements\NoUnknownPropertyRule
tags:
- phpstan.rules.rule
# Conditional rules
- class: Lipe\Lib\Phpstan\Rules\Classes\FinalRule
arguments:
disallowAbstractClasses: %lipemat.noExtends%
classesAllowedToBeAbstract: %lipemat.allowedToBeExtended%
- class: Lipe\Lib\Phpstan\Rules\Classes\NoExtendsRule
arguments:
classesAllowedToBeExtended: %lipemat.allowedToBeExtended%
- class: Lipe\Lib\Phpstan\Rules\Files\DeclareStrictTypesRule
- class: Lipe\Lib\Phpstan\Rules\Methods\FinalInAbstractClassRule
conditionalTags:
Lipe\Lib\Phpstan\Rules\Classes\NoExtendsRule:
phpstan.rules.rule: %lipemat.noExtends%
Lipe\Lib\Phpstan\Rules\Classes\FinalRule:
phpstan.rules.rule: %lipemat.nonDistributed%
Lipe\Lib\Phpstan\Rules\Files\DeclareStrictTypesRule:
phpstan.rules.rule: %lipemat.nonDistributed%
Lipe\Lib\Phpstan\Rules\Methods\FinalInAbstractClassRule:
phpstan.rules.rule: %lipemat.nonDistributed%
## Supported custom parameters.
parametersSchema:
lipemat: structure([
allowedToBeExtended: listOf(string()),
noExtends: bool(),
nonDistributed: bool()
])
# Default parameters passed to phpstan by this extension.
parameters:
lipemat:
allowedToBeExtended: []
noExtends: false
nonDistributed: true