-
-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
122 lines (121 loc) · 5.12 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
122 lines (121 loc) · 5.12 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
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
117
118
119
120
121
122
parameters:
ignoreErrors:
# We're ignoring certain type errors in the database package, so that PhpStorm has proper autocompletion
-
identifier: parameter.phpDocType
paths:
- packages/database/src/functions.php
-
identifier: method.templateTypeNotInParameter
paths:
- packages/database/src/functions.php
-
identifier: return.unresolvableType
paths:
- packages/database/src/Builder/*
-
identifier: parameter.phpDocType
paths:
- packages/database/src/Builder/*
-
identifier: property.phpDocType
paths:
- packages/database/src/Builder/*
-
identifier: class.notFound
paths:
- packages/database/src/Builder/*
-
identifier: varTag.nativeType
paths:
- packages/database/src/Builder/*
# End of database ignores
-
identifier: argument.named
paths:
- src/Tempest/Framework/Testing/*
- tests/Integration/**/*Test.php
- packages/auth/src/OAuth/Testing/*
- packages/**/src/Testing/*
- packages/core/src/Exceptions/ExceptionTester.php
- packages/**/tests/**/*.php
- packages/**/tests/*.php
-
identifier: disallowed.function
path: packages/clock/src/MockClock.php
count: 1
# Intentional: dd() is the purpose of MockClock::dd()
-
identifier: disallowed.function
path: packages/debug/src/DOMDebug.php
count: 1
# Intentional: lw() is the purpose of DOMDebug::dump()
-
identifier: disallowed.function
path: packages/debug/src/functions.php
count: 2
# Intentional: dd() delegates to ld() and dump() delegates to lw()
-
identifier: disallowed.function
path: packages/discovery/src/Composer.php
count: 1
# Intentional: exec() is required for running composer commands
-
identifier: disallowed.function
path: packages/console/src/Terminal/Terminal.php
count: 3
# Intentional: exec() is required for TTY terminal operations (stty, tput)
-
identifier: disallowed.function
path: packages/datetime/src/TemporalConvenienceMethods.php
count: 2
# Intentional: dd() is the purpose of TemporalInterface::dd()
-
identifier: disallowed.function
path: packages/console/src/Testing/ConsoleTester.php
count: 1
# Intentional: ld() is the purpose of ConsoleTester::dd()
-
identifier: disallowed.function
path: src/Tempest/Framework/Commands/ConfigShowCommand.php
count: 1
# Intentional: lw() used for debug output when available
-
identifier: disallowed.function
path: tests/Integration/Console/Fixtures/LogDebugCommand.php
count: 1
# Intentional: lw() is the purpose of this test fixture
-
identifier: disallowed.function
path: packages/support/tests/Filesystem/UnixFunctionsTest.php
count: 1
# Intentional: exec() restores permissions recursively during Unix test cleanup
-
identifier: requireOnce.fileNotFound
path: packages/support/tests/Fixtures/Phar/normalize_path.php
count: 1
# Intentional: require_once target exists only inside generated Phar archive at runtime
-
identifier: argument.type
path: packages/validation/tests/Rules/IsEnumTest.php
count: 1
# Intentional: constructor accepts only enum class-strings; this test verifies runtime rejection path for invalid input
-
identifier: staticMethod.alreadyNarrowedType
path: packages/process/src/Testing/ProcessTester.php
count: 3
# Intentional: explicit assertTrue() calls keep callback-only branches counted as assertions in tests
-
identifier: function.notFound
paths:
- packages/view/tests/Fixtures/standalone-error-slot-usage.view.php
- packages/view/tests/Fixtures/standalone-error.view.php
- packages/view/tests/Fixtures/x-standalone-error-component.view.php
- tests/Integration/View/Fixtures/stacktrace-standalone-error.view.php
- tests/Integration/View/Fixtures/x-stacktrace-error-component.view.php
# Intentional: these fixtures validate source-path stack traces for view compilation errors
-
identifier: variable.undefined
path: packages/view/tests/Fixtures/standalone-undefined-variable.view.php
count: 1
# Intentional: this fixture validates undefined variable source mapping in view compilation errors