-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon.dist
29 lines (28 loc) · 959 Bytes
/
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
includes:
- phar://phpstan.phar/conf/config.levelmax.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
- ./vendor/phpstan/phpstan-phpunit/extension.neon
- ./vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
paths:
- src
- tests
excludePaths:
analyseAndScan:
- tests/data/*
exceptions:
implicitThrows: false
checkedExceptionClasses:
- ShipMonk\NameCollision\Exception\RuntimeException
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
tmpDir: cache/phpstan/
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
ignoreErrors:
- # allow exception violations in tests
message: '#missing from the PHPDoc @throws tag\.$#'
path: tests/*