-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.neon
More file actions
78 lines (75 loc) · 2.46 KB
/
Copy pathrules.neon
File metadata and controls
78 lines (75 loc) · 2.46 KB
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
services:
- class: Lipe\Lib\Phpstan\Rules\Expressions\NoCompactRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Expressions\NoExtractRule
tags:
- phpstan.rules.rule
- class: Lipe\Lib\Phpstan\Rules\Internal\TemplatePartExistsRule
tags:
- phpstan.rules.rule
arguments:
themePath: %lipemat.themePath%
- class: Lipe\Lib\Phpstan\Rules\Internal\TemplatePartFunctionExistsRule
tags:
- phpstan.rules.rule
arguments:
themePath: %lipemat.themePath%
- 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\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(),
themePath: string(),
])
# Default parameters passed to phpstan by this extension.
parameters:
lipemat:
allowedToBeExtended: []
noExtends: false
nonDistributed: true
themePath: ''