-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon.dist
35 lines (30 loc) · 1.45 KB
/
phpstan.neon.dist
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
includes:
- ../../../src/Core/DevOps/StaticAnalyze/PHPStan/common.neon
parameters:
tmpDir: var/cache/phpstan
paths:
- src
- tests
excludePaths:
- src/Resources
symfony:
constantHassers: false
containerXmlPath: '../../../var/cache/phpstan_dev/Shopware_Core_DevOps_StaticAnalyze_StaticAnalyzeKernelPhpstan_devDebugContainer.xml'
consoleApplicationLoader: ../../../src/Core/DevOps/StaticAnalyze/console-application.php
ignoreErrors:
- # Direct container access
message: '#Service ".*" is private#'
path: tests
- # Ignore namespace for test plugins
message: '#Class like namespace .* does not follow PSR-4 configuration in composer.json#'
path: tests/_fixtures
rules:
# Shopware core rules
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Deprecation\DeprecatedMethodsThrowDeprecationRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Tests\CoversAttributeRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Tests\MockingSimpleObjectsNotAllowedRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\FinalClassRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\DecorationPatternRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\PackageAnnotationRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\DomainExceptionRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\NoAfterStatementRule