-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
66 lines (62 loc) · 2.42 KB
/
Copy pathphpstan.neon
File metadata and controls
66 lines (62 loc) · 2.42 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
includes:
- vendor/larastan/larastan/extension.neon
- vendor/nesbot/carbon/extension.neon
- vendor/phpstan/phpstan-mockery/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/symplify/phpstan-rules/config/services/services.neon
services:
-
class: Examples\CustomExtensions\PHPStan\BoundaryRule
arguments:
boundaries:
'Examples\CustomExtensions\Domain\':
- 'Examples\CustomExtensions\Application'
- 'Examples\CustomExtensions\Presentation'
- 'Examples\CustomExtensions\Infrastructure'
'Examples\CustomExtensions\Application\':
- 'Examples\CustomExtensions\Presentation'
- 'Examples\CustomExtensions\Infrastructure'
tags:
- phpstan.restrictedClassNameUsageExtension
-
class: Symplify\PHPStanRules\Rules\Complexity\ForbiddenNewArgumentRule
tags: [phpstan.rules.rule]
arguments:
forbiddenTypes:
- Examples\CommunityExtensions\CustomerService
-
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions:
- var_dump
-
class: Symplify\PHPStanRules\Rules\PreferredClassRule
tags: [phpstan.rules.rule]
arguments:
oldToPreferredClasses:
Examples\CommunityExtensions\CustomerService: Examples\CommunityExtensions\ShinyNewCustomerService
rules:
- Symplify\PHPStanRules\Rules\NoGlobalConstRule
parameters:
stubFiles:
- 4-Stubs/SubscriptionClient.stub
level: max
paths:
- 0-Workshop/Solution/Application
- 0-Workshop/Solution/Domain
- 0-Workshop/Solution/Framework/Database
- 0-Workshop/Solution/database
- 0-Workshop/Solution/Presenters
- 1-Aliases
- 2-Asserts
- 3-Generics
- 4-Stubs
# - 5-Community-Extensions # Uncomment to test community extensions, everything is intentionally broken there
- 6-Custom-Extensions
excludePaths: # In these folders, we intentionally break things; comment one out to see the errors
- 3-Generics/v1/**
- 6-Custom-Extensions