-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
83 lines (78 loc) · 3.46 KB
/
Copy pathphpstan.dist.neon
File metadata and controls
83 lines (78 loc) · 3.46 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
includes:
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
parameters:
bootstrapFiles:
- vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php
level: max
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkTooWideParameterOutInProtectedAndPublicMethods: true
checkTooWideThrowTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
checkImplicitMixed: true
checkBenevolentUnionTypes: true
checkMissingOverrideMethodAttribute: true
checkMissingCallableSignature: true
reportAnyTypeWideningInVarTag: true
reportAlwaysTrueInLastCondition: true
reportPossiblyNonexistentConstantArrayOffset: true
featureToggles:
checkPrintfParameterTypes: true
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
tooWideImplicitThrowType: true
checkedExceptionRegexes:
- '#^VinceAmstoutz\\SymfonySecurityAuditor\\.+\\Exception\\#'
paths:
- bin/
- config/
- src/
- tests/
- tools/
resultCachePath: var/phpstan
cognitive_complexity:
class: 40
function: 7
rules:
- VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\MaxParameterCountRule
- VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\NoEmptyCatchRule
- VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\NoSilencingErrorHandlerRule
- VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\FinalRule
- VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\ForbiddenTestAttributeRule
- VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\SprintfOverConcatRule
- Symplify\PHPStanRules\Rules\NoDynamicNameRule
- Symplify\PHPStanRules\Rules\NoReferenceRule
- Symplify\PHPStanRules\Rules\NoGlobalConstRule
- Symplify\PHPStanRules\Rules\NoReturnSetterMethodRule
- Symplify\PHPStanRules\Rules\ForbiddenMultipleClassLikeInOneFileRule
- Symplify\PHPStanRules\Rules\Complexity\ForeachCeptionRule
- Symplify\PHPStanRules\Rules\Complexity\NoConstructorOverrideRule
- Symplify\PHPStanRules\Rules\Complexity\NoJustPropertyAssignRule
- Symplify\PHPStanRules\Rules\Enum\RequireUniqueEnumConstantRule
- Symplify\PHPStanRules\Rules\Explicit\ExplicitClassPrefixSuffixRule
- Symplify\PHPStanRules\Rules\Domain\RequireExceptionNamespaceRule
- Symplify\PHPStanRules\Rules\Domain\RequireAttributeNamespaceRule
- Symplify\PHPStanRules\Rules\Symfony\NoGetInCommandRule
- Symplify\PHPStanRules\Rules\PHPUnit\PublicStaticDataProviderRule
- Symplify\PHPStanRules\Rules\PHPUnit\NoAssertFuncCallInTestsRule
- Symplify\PHPStanRules\Rules\PHPUnit\NoMockOnlyTestRule
- Symplify\PHPStanRules\Rules\PHPUnit\NoMockObjectAndRealObjectPropertyRule
- Symplify\PHPStanRules\Rules\PHPUnit\NoDoubleConsecutiveTestMockRule
services:
-
class: VinceAmstoutz\SymfonySecurityAuditor\Tooling\PHPStan\ConcatRootMarkingVisitor
tags:
- phpstan.parser.richParserNodeVisitor
-
class: Symplify\PHPStanRules\Rules\ForbiddenNodeRule
arguments:
forbiddenNodes:
- PhpParser\Node\Expr\ErrorSuppress
- PhpParser\Node\Stmt\Else_
- PhpParser\Node\Stmt\ElseIf_
- PhpParser\Node\Expr\Isset_
- PhpParser\Node\Expr\Eval_
- PhpParser\Node\Stmt\Goto_
tags:
- phpstan.rules.rule