-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
45 lines (40 loc) · 2.24 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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-mockery/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- phpstan-extension.neon
- phpstan-baseline.neon
services:
# Handy services from Rector package
- Rector\NodeNameResolver\NodeNameResolver
- Rector\Skipper\Matcher\FileInfoMatcher
- Rector\CodingStyle\Naming\ClassNaming
- Rector\NodeAnalyzer\CallAnalyzer
- Rector\Skipper\FileSystem\FnMatchPathNormalizer
- Rector\Skipper\Fnmatcher
- Rector\Skipper\RealpathMatcher
parameters:
level: max
paths:
- src
ignoreErrors:
# TODO: Cleanup needed
- identifier: offsetAccess.nonOffsetAccessible
- identifier: return.unusedType
paths:
- src/BrandEmbassyCodingStandard/Rector/MabeEnumClassToEnumRector/MabeEnumClassToEnumRector.php
- src/BrandEmbassyCodingStandard/Rector/NetteStringsStartsWithToNativeCallRector/NetteStringsStartsWithToNativeCallRector.php
- src/BrandEmbassyCodingStandard/Rector/NetteStringsEndsWithToNativeCallRector/NetteStringsEndsWithToNativeCallRector.php
- src/BrandEmbassyCodingStandard/Rector/MabeEnumMethodCallToEnumConstRector/MabeEnumMethodCallToEnumConstRector.php
- src/BrandEmbassyCodingStandard/Rector/MabeEnumClassToEnumRector/MabeEnumClassToEnumRectorTest.php
- src/BrandEmbassyCodingStandard/Rector/NetteStringsContainsToNativeCallRector/NetteStringsContainsToNativeCallRectorTest.php
- src/BrandEmbassyCodingStandard/Rector/MabeEnumMethodCallToEnumConstRector/MabeEnumMethodCallToEnumConstRectorTest.php
- # Because fixtures are in excludePaths, the constant won't be discovered by PHPStan
message: '#^Class BrandEmbassyCodingStandard\\PhpStan\\Rules\\DisallowConstantsInTestsRule\\__fixtures__\\AllowedConstant not found\.$#'
identifier: class.notFound
count: 1
path: src/BrandEmbassyCodingStandard/PhpStan/Rules/DisallowConstantsInTestsRule/DisallowConstantsInTestsRuleTest.php
excludePaths:
- src/BrandEmbassyCodingStandard/*/__fixtures__/*
- src/BrandEmbassyCodingStandard/*/__fixtures/*