-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon
47 lines (37 loc) · 1.27 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
includes:
- vendor/symplify/phpstan-rules/config/static-rules.neon
parameters:
level: 6
phpVersion: 80200
tmpDir: var/cache/phpstan
paths:
- src
- tests
type_coverage:
return_type: 99
param_type: 98
property_type: 55
constant_type: 0
bootstrapFiles:
- tests/bootstrap.php
symfony:
constantHassers: false
containerXmlPath: 'var/cache/dev/Swag_Braintree_KernelDevDebugContainer.xml'
ignoreErrors:
# TestException
-
message: '#Multiple class/interface/trait is not allowed in single file#'
path: tests/unit
rules:
# rules from https://github.com/symplify/phpstan-rules
# domain
- Symplify\PHPStanRules\Rules\Enum\RequireUniqueEnumConstantRule
- Symplify\PHPStanRules\Rules\PreventParentMethodVisibilityOverrideRule
# explicit naming
- Symplify\PHPStanRules\Rules\ForbiddenMultipleClassLikeInOneFileRule
- Symplify\PHPStanRules\Rules\Complexity\ForbiddenArrayMethodCallRule
# complexity rules
- Symplify\PHPStanRules\Rules\NoDynamicNameRule
# naming rules
- Symplify\PHPStanRules\Rules\UppercaseConstantRule
- Symplify\PHPStanRules\Rules\CheckClassNamespaceFollowPsr4Rule