-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathphpstan.neon.dist
116 lines (93 loc) · 4.86 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
includes:
- vendor/larastan/larastan/extension.neon
- vendor/phpstan/phpstan-mockery/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
reportUnmatchedIgnoredErrors: false
level: 6
paths:
- config
- src
- tests
excludePaths:
- vendor/*
ignoreErrors:
# Optional dependencies
- message: '#(?:C|c)lass Enlightn\\SecurityChecker\\SecurityChecker not found#'
paths:
- src/Checks/PackageSecurityHealthCheck.php
- tests/Checks/PackageSecurityHealthCheckTest.php
- tests/Stubs/Checks/PackageSecurityHealthCheck.php
- message: '#(?:C|c)lass SensioLabs\\Security\\SecurityChecker not found#'
paths:
- src/Checks/PackageSecurityHealthCheck.php
- message: '#Call to method .+ on an unknown class Enlightn\\SecurityChecker\\SecurityChecker#'
paths:
- src/Checks/PackageSecurityHealthCheck.php
# Updated baseline for Larastan ^3.0
-
message: '#^Called ''env'' outside of the config directory which returns null when the config is cached, use ''config''\.$#'
identifier: larastan.noEnvCallsOutsideOfConfig
count: 2
path: config/healthcheck.php
-
message: '#^Loose comparison using \!\= between ''broken'' and ''healthy'' will always evaluate to true\.$#'
identifier: notEqual.alwaysTrue
count: 1
path: src/Checks/CacheHealthCheck.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: src/Checks/CacheHealthCheck.php
-
message: '#^Called ''env'' outside of the config directory which returns null when the config is cached, use ''config''\.$#'
identifier: larastan.noEnvCallsOutsideOfConfig
count: 1
path: src/Checks/EnvHealthCheck.php
-
message: '#^Parameter \#2 \$value of method Illuminate\\Support\\Collection\<string,array\<string, string\>\>\:\:put\(\) expects array\<string, string\>, array\<string, mixed\> given\.$#'
identifier: argument.type
count: 1
path: src/Checks/HttpHealthCheck.php
-
message: '#^Property UKFast\\HealthCheck\\Checks\\PackageSecurityHealthCheck\:\:\$vulnerablePackages \(Illuminate\\Support\\Collection\<int, string\>\) does not accept Illuminate\\Support\\Collection\<string, array\<string, string\>\|string\>\.$#'
identifier: assign.propertyType
count: 1
path: src/Checks/PackageSecurityHealthCheck.php
-
message: '#^Offset 0 does not exist on non\-empty\-array\<string, array\<string, int\|string\>\|Psr\\Http\\Message\\RequestInterface\|string\|null\>\.$#'
identifier: offsetAccess.notFound
count: 4
path: tests/Checks/CrossServiceHealthCheckTest.php
-
message: '#^Parameter &\$container by\-ref type of method Tests\\Checks\\CrossServiceHealthCheckTest\:\:mockClient\(\) expects array\<string, array\<string, int\|string\>\|Psr\\Http\\Message\\RequestInterface\|string\|null\>, array\|ArrayAccess\<int, array\> given\.$#'
identifier: parameterByRef.type
count: 1
path: tests/Checks/CrossServiceHealthCheckTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/Commands/CacheSchedulerRunningTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with Illuminate\\Routing\\Route will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 3
path: tests/HealthCheckServiceProviderTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with string will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/HealthCheckServiceProviderTest.php
-
message: '#^PHPDoc tag @SuppressWarnings has invalid value \(\(PHPMD\.CamelCaseMethodName\)\)\: Unexpected token "\.CamelCaseMethodName\)", expected ''\)'' at offset 219 on line 5$#'
identifier: phpDoc.parseError
count: 1
path: tests/Stubs/Redis/Connections/PhpRedisClusterConnection.php
-
message: '#^PHPDoc tag @SuppressWarnings has invalid value \(\(PHPMD\.UnusedLocalVariable\)\)\: Unexpected token "\.UnusedLocalVariable\)", expected ''\)'' at offset 167 on line 4$#'
identifier: phpDoc.parseError
count: 1
path: tests/Stubs/Redis/Connections/PhpRedisClusterConnection.php