-
Notifications
You must be signed in to change notification settings - Fork 4
/
rules.neon
104 lines (91 loc) · 3.75 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
parameters:
sidzIgnoreMagicNumbers: [0, 1]
sidzIgnoreNumericStrings: false
parametersSchema:
sidzIgnoreMagicNumbers: arrayOf(number())
sidzIgnoreNumericStrings: boolean()
services:
NoMagicNumberAsFunctionArgumentRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberAsFunctionArgumentRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberAssignedToPropertyRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberAssignedToPropertyRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInArithmeticOperatorRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInArithmeticOperatorRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInBitwiseOperatorRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInBitwiseOperatorRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInComparisonOperatorRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInComparisonOperatorRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInDefaultParameterRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInDefaultParameterRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInLogicalOperatorRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInLogicalOperatorRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInMatchRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInMatchRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInReturnStatementRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInReturnStatementRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInSwitchCaseRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInSwitchCaseRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberInTernaryOperatorRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberInTernaryOperatorRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule
NoMagicNumberVariableAssignmentRule:
class: Sid\PHPStan\Rules\MagicNumber\NoMagicNumberVariableAssignmentRule
arguments:
ignoreMagicNumbers: %sidzIgnoreMagicNumbers%
ignoreNumericStrings: %sidzIgnoreNumericStrings%
tags:
- phpstan.rules.rule