This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
psalm-baseline.xml
221 lines (221 loc) · 7.73 KB
/
psalm-baseline.xml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.3.2@57b53ff26237074fdf5cbcb034f7da5172be4524">
<file src="src/Console/GenerateCommand.php">
<ImplicitToStringCast occurrences="1">
<code>$repository</code>
</ImplicitToStringCast>
<InvalidArgument occurrences="2">
<code>'origin'</code>
<code>'upstream'</code>
</InvalidArgument>
<InvalidOperand occurrences="1">
<code>$event->getDuration() / 1000</code>
</InvalidOperand>
<MixedArgument occurrences="2">
<code>Console\Helper\Helper::formatMemory($event->getMemory())</code>
<code>Console\Helper\Helper::formatTime($event->getDuration() / 1000)</code>
</MixedArgument>
</file>
<file src="src/Exception/PullRequestNotFound.php">
<ImplicitToStringCast occurrences="1">
<code>$repository</code>
</ImplicitToStringCast>
</file>
<file src="src/Exception/ReferenceNotFound.php">
<ImplicitToStringCast occurrences="1">
<code>$repository</code>
</ImplicitToStringCast>
</file>
<file src="src/Repository/CommitRepository.php">
<MissingClosureParamType occurrences="1">
<code>$data</code>
</MissingClosureParamType>
<MixedArgument occurrences="4">
<code>$data['commit']['message']</code>
<code>$data['sha']</code>
<code>$response['commit']['message']</code>
<code>$response['sha']</code>
</MixedArgument>
<MixedArrayAccess occurrences="3">
<code>$data['commit']</code>
<code>$data['sha']</code>
<code>$response['commit']['message']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="1">
<code>$range</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>Resource\RangeInterface</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="1">
<code>withCommit</code>
</MixedMethodCall>
<MixedReturnStatement occurrences="1">
<code>$range</code>
</MixedReturnStatement>
<UnnecessaryVarAnnotation occurrences="1">
<code>Resource\CommitInterface</code>
</UnnecessaryVarAnnotation>
</file>
<file src="src/Repository/PullRequestRepository.php">
<MixedArgument occurrences="3">
<code>$response['number']</code>
<code>$response['title']</code>
<code>$response['user']['login']</code>
</MixedArgument>
<MixedArrayAccess occurrences="1">
<code>$response['user']['login']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="1">
<code>$range</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>Resource\RangeInterface</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="1">
<code>withPullRequest</code>
</MixedMethodCall>
<MixedReturnStatement occurrences="1">
<code>$range</code>
</MixedReturnStatement>
</file>
<file src="src/Repository/PullRequestRepositoryInterface.php">
<InvalidDocblock occurrences="2">
<code>public function items(Resource\RepositoryInterface $repository, string $startReference, ?string $endReference = null): Resource\RangeInterface;</code>
<code>public function show(Resource\RepositoryInterface $repository, int $number): Resource\PullRequestInterface;</code>
</InvalidDocblock>
</file>
<file src="src/Resource/Repository.php">
<RedundantIdentityWithTrue occurrences="2">
<code>true === $asPartial</code>
<code>true === $asPartial</code>
</RedundantIdentityWithTrue>
</file>
<file src="src/Util/Git.php">
<MixedArgumentTypeCoercion occurrences="1">
<code>$remoteNames</code>
</MixedArgumentTypeCoercion>
<MixedInferredReturnType occurrences="1">
<code>?string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>\array_shift($remoteUrls)</code>
</MixedReturnStatement>
</file>
<file src="src/Util/RepositoryResolver.php">
<ImplementedParamTypeMismatch occurrences="1">
<code>$fromRemoteNames</code>
</ImplementedParamTypeMismatch>
<InvalidArgument occurrences="2">
<code>\array_flip($fromRemoteNames)</code>
<code>\array_flip($fromRemoteNames)</code>
</InvalidArgument>
</file>
<file src="src/Util/RepositoryResolverInterface.php">
<MismatchingDocblockParamType occurrences="1">
<code>string[]</code>
</MismatchingDocblockParamType>
</file>
<file src="test/Unit/Console/GenerateCommandTest.php">
<MixedArgument occurrences="1">
<code>$expectedMessage</code>
</MixedArgument>
<MixedArrayAssignment occurrences="1">
<code>$expectedMessages[]</code>
</MixedArrayAssignment>
<MixedAssignment occurrences="1">
<code>$expectedMessage</code>
</MixedAssignment>
<UnnecessaryVarAnnotation occurrences="2">
<code>Input\InputArgument</code>
<code>Input\InputOption</code>
</UnnecessaryVarAnnotation>
</file>
<file src="test/Unit/Exception/PullRequestNotFoundTest.php">
<ImplicitToStringCast occurrences="1">
<code>$repository</code>
</ImplicitToStringCast>
</file>
<file src="test/Unit/Exception/ReferenceNotFoundTest.php">
<ImplicitToStringCast occurrences="1">
<code>$repository</code>
</ImplicitToStringCast>
</file>
<file src="test/Unit/Repository/CommitRepositoryTest.php">
<MissingClosureParamType occurrences="4">
<code>$array</code>
<code>$array</code>
<code>$commit</code>
<code>$commit</code>
</MissingClosureParamType>
<MixedArgument occurrences="3">
<code>$expectedItems</code>
<code>$expectedItems</code>
<code>$expectedItems</code>
</MixedArgument>
<MixedArrayAccess occurrences="8">
<code>$expectedItem['commit']</code>
<code>$expectedItem['commit']</code>
<code>$expectedItem['commit']</code>
<code>$expectedItem['commit']['message']</code>
<code>$expectedItem['sha']</code>
<code>$expectedItem['sha']</code>
<code>$expectedItem['sha']</code>
<code>$firstCommitFromFirstSegment['sha']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="4">
<code>$expectedItem</code>
<code>$expectedItem</code>
<code>$expectedItem</code>
<code>$firstCommitFromFirstSegment</code>
</MixedAssignment>
</file>
<file src="test/Unit/Repository/PullRequestRepositoryTest.php">
<ImplicitToStringCast occurrences="1">
<code>$repository</code>
</ImplicitToStringCast>
<MixedArgument occurrences="2">
<code>$expectedItem['number']</code>
<code>$expectedItem['number']</code>
</MixedArgument>
<MixedArrayAccess occurrences="1">
<code>$expectedItem['user']['login']</code>
</MixedArrayAccess>
</file>
<file src="test/Unit/Util/GitTest.php">
<UnusedVariable occurrences="1">
<code>$remoteUrl</code>
</UnusedVariable>
</file>
<file src="test/Unit/Util/RepositoryResolverTest.php">
<InvalidArgument occurrences="1">
<code>$fromRemoteNames</code>
</InvalidArgument>
<MixedArgument occurrences="1">
<code>$fromRemoteNames</code>
</MixedArgument>
<MixedArrayOffset occurrences="2">
<code>$remoteUrls[$remoteName]</code>
<code>$remoteUrls[$remoteName]</code>
</MixedArrayOffset>
<MixedAssignment occurrences="2">
<code>$remoteName</code>
<code>$remoteName</code>
</MixedAssignment>
<TooManyArguments occurrences="3"/>
</file>
<file src="test/Util/DataProvider.php">
<MixedInferredReturnType occurrences="10">
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
<code>\Generator</code>
</MixedInferredReturnType>
</file>
</files>