-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
75 lines (72 loc) · 3.62 KB
/
phpstan.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
includes:
- 'vendor/phpstan/phpstan-deprecation-rules/rules.neon'
- 'vendor/phpstan/phpstan-strict-rules/rules.neon'
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
# polluteScopeWithLoopInitialAssignments: false
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkFunctionNameCase: true
checkMissingIterableValueType: false
excludes_analyse:
- vendor/*
- public/*
services:
- {
class: PHPStan\Rules\Cast\UselessCastRule,
arguments: { treatPhpDocTypesAsCertain: false },
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\Properties\MissingPropertyTypehintRule,
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule,
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule,
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule,
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule,
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule,
tags: ['phpstan.rules.rule'],
}
- {
class: PHPStan\Rules\Methods\MissingMethodReturnTypehintRule,
tags: ['phpstan.rules.rule'],
}
# - { class: PHPStan\Rules\Methods\MissingMethodParameterTypehintRule, tags: ['phpstan.rules.rule'] }
#
# - { class: PHPStan\Rules\BooleansInConditions\BooleanRuleHelper }
# - { class: PHPStan\Rules\Operators\OperatorRuleHelper }
# - { class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandsInArithmeticModuloRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\StrictCalls\StrictFunctionCallsRule, tags: ['phpstan.rules.rule'] }
# - { class: PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule, tags: ['phpstan.rules.rule'] }