-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
rules.neon
68 lines (65 loc) · 3.01 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
67
68
parameters:
larastanStrictRules:
allRules: true
noDynamicWhere: %larastanStrictRules.allRules%
noFacade: %larastanStrictRules.allRules%
noGlobalLaravelFunction: %larastanStrictRules.allRules%
noLocalQueryScope: %larastanStrictRules.allRules%
noPropertyAccessor: %larastanStrictRules.allRules%
noValidationInController: %larastanStrictRules.allRules%
scopeShouldReturnQueryBuilder: %larastanStrictRules.allRules%
listenerShouldHaveVoidReturnType: %larastanStrictRules.allRules%
allowedGlobalFunctions: []
listenerPaths: []
parametersSchema:
larastanStrictRules: structure([
allRules: anyOf(bool(), arrayOf(bool())),
noDynamicWhere: anyOf(bool(), arrayOf(bool())),
noFacade: anyOf(bool(), arrayOf(bool())),
noGlobalLaravelFunction: anyOf(bool(), arrayOf(bool())),
noLocalQueryScope: anyOf(bool(), arrayOf(bool())),
noPropertyAccessor: anyOf(bool(), arrayOf(bool())),
noValidationInController: anyOf(bool(), arrayOf(bool())),
scopeShouldReturnQueryBuilder: anyOf(bool(), arrayOf(bool())),
listenerShouldHaveVoidReturnType: anyOf(bool(), arrayOf(bool())),
])
allowedGlobalFunctions: listOf(string())
listenerPaths: listOf(string())
services:
-
class: Vural\LarastanStrictRules\Rules\NoDynamicWhereRule
-
class: Vural\LarastanStrictRules\Rules\NoFacadeRule
-
class: Vural\LarastanStrictRules\Rules\NoGlobalLaravelFunctionRule
arguments:
allowedFunctions: %allowedGlobalFunctions%
-
class: Vural\LarastanStrictRules\Rules\NoLocalQueryScopeRule
-
class: Vural\LarastanStrictRules\Rules\NoPropertyAccessorRule
-
class: Vural\LarastanStrictRules\Rules\NoValidationInControllerRule
-
class: Vural\LarastanStrictRules\Rules\ScopeShouldReturnQueryBuilderRule
-
class: Vural\LarastanStrictRules\Rules\ListenerShouldHaveVoidReturnTypeRule
arguments:
listenerPaths: %listenerPaths%
conditionalTags:
Vural\LarastanStrictRules\Rules\NoDynamicWhereRule:
phpstan.rules.rule: %larastanStrictRules.noDynamicWhere%
Vural\LarastanStrictRules\Rules\NoFacadeRule:
phpstan.rules.rule: %larastanStrictRules.noFacade%
Vural\LarastanStrictRules\Rules\NoGlobalLaravelFunctionRule:
phpstan.rules.rule: %larastanStrictRules.noGlobalLaravelFunction%
Vural\LarastanStrictRules\Rules\NoLocalQueryScopeRule:
phpstan.rules.rule: %larastanStrictRules.noLocalQueryScope%
Vural\LarastanStrictRules\Rules\NoPropertyAccessorRule:
phpstan.rules.rule: %larastanStrictRules.noPropertyAccessor%
Vural\LarastanStrictRules\Rules\NoValidationInControllerRule:
phpstan.rules.rule: %larastanStrictRules.noValidationInController%
Vural\LarastanStrictRules\Rules\ScopeShouldReturnQueryBuilderRule:
phpstan.rules.rule: %larastanStrictRules.scopeShouldReturnQueryBuilder%
Vural\LarastanStrictRules\Rules\ListenerShouldHaveVoidReturnTypeRule:
phpstan.rules.rule: %larastanStrictRules.listenerShouldHaveVoidReturnType%