This repository was archived by the owner on May 29, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpsalm.xml
More file actions
184 lines (184 loc) · 10.2 KB
/
Copy pathpsalm.xml
File metadata and controls
184 lines (184 loc) · 10.2 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
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
<?xml version="1.0"?>
<psalm
errorLevel="4"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
findUnusedBaselineEntry="true"
findUnusedCode="true"
findUnusedVariablesAndParams="true"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="lib" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<stubs>
<file name="vendor/nextcloud/ocp/OCP/Capabilities/ICapability.php" preloadClasses="true" />
</stubs>
<issueHandlers>
<UndefinedDocblockClass errorLevel="suppress"/>
<UndefinedClass>
<errorLevel type="suppress">
<referencedClass name="OC"/>
<referencedClass name="Doctrine\DBAL\Types\Types"/>
<referencedClass name="Doctrine\DBAL\Types\Type"/>
<referencedClass name="Doctrine\DBAL\Connection"/>
<referencedClass name="Doctrine\DBAL\Schema\Schema"/>
<referencedClass name="Symfony\Component\HttpFoundation\Response"/>
<referencedClass name="Doctrine\DBAL\Platforms\AbstractPlatform"/>
<referencedClass name="Doctrine\DBAL\Platforms\MySQLPlatform"/>
<referencedClass name="Doctrine\DBAL\Platforms\AbstractMySQLPlatform"/>
<referencedClass name="Doctrine\DBAL\Platforms\SqlitePlatform"/>
<referencedClass name="Doctrine\DBAL\ParameterType"/>
<referencedClass name="APCUIterator"/>
<referencedClass name="React\Async\PromiseInterface"/>
<referencedClass name="Solarium\Client"/>
<referencedClass name="Solarium\Core\Client\Adapter\Curl"/>
<referencedClass name="Solarium\Exception\HttpException"/>
<referencedClass name="Symfony\Component\EventDispatcher\EventDispatcher"/>
<referencedClass name="Ramsey\Uuid\Uuid"/>
<!-- Nextcloud OCP Classes -->
<referencedClass name="OCP\AppFramework\App"/>
<referencedClass name="OCP\AppFramework\Bootstrap\IBootstrap"/>
<referencedClass name="OCP\AppFramework\Controller"/>
<referencedClass name="OCP\AppFramework\IAppContainer"/>
<referencedClass name="OCP\App\IAppManager"/>
<referencedClass name="OCP\BackgroundJob\IJobList"/>
<referencedClass name="OCP\BackgroundJob\QueuedJob"/>
<referencedClass name="OCP\BackgroundJob\TimedJob"/>
<referencedClass name="OCP\EventDispatcher\Event"/>
<referencedClass name="OCP\EventDispatcher\IEventListener"/>
<referencedClass name="OCP\IAppConfig"/>
<referencedClass name="OCP\ICacheFactory"/>
<referencedClass name="OCP\IConfig"/>
<referencedClass name="OCP\IDBConnection"/>
<referencedClass name="OCP\IGroupManager"/>
<referencedClass name="OCP\IUserManager"/>
<referencedClass name="OCP\IUserSession"/>
<referencedClass name="OCP\Search\IFilteringProvider"/>
<referencedClass name="OCP\IMemcache"/>
<referencedClass name="OCP\IRequest"/>
<referencedClass name="OCP\EventDispatcher\IEventDispatcher"/>
<referencedClass name="OCP\DB\QueryBuilder\IQueryBuilder"/>
<referencedClass name="OCP\AppFramework\Db\QBMapper"/>
<referencedClass name="OCP\AppFramework\Db\Entity"/>
<referencedClass name="OCP\Files\IRootFolder"/>
<referencedClass name="OCP\Files\Node"/>
<referencedClass name="OCP\Files\File"/>
<referencedClass name="OCP\Files\Folder"/>
<referencedClass name="OCP\Files\NotFoundException"/>
<referencedClass name="OCP\AppFramework\Http\JSONResponse"/>
<referencedClass name="OCP\AppFramework\Http\TemplateResponse"/>
<referencedClass name="OCP\AppFramework\Http\DataResponse"/>
<referencedClass name="OCP\IL10N"/>
<referencedClass name="OCP\IURLGenerator"/>
<referencedClass name="OCP\Http\Client\IClient"/>
<referencedClass name="OCP\Http\Client\IClientService"/>
<referencedClass name="OCP\SystemTag\ISystemTagManager"/>
<referencedClass name="OCP\Notification\IManager"/>
<referencedClass name="OCP\Share\IManager"/>
<referencedClass name="OC\Files\AppData\Factory"/>
<referencedClass name="OC\Security\CSP\ContentSecurityPolicyNonceManager"/>
<referencedClass name="OC\Security\CSRF\CsrfTokenManager"/>
<referencedClass name="Doctrine\DBAL\Platforms\PostgreSQLPlatform"/>
<referencedClass name="OCA\DAV\CalDAV\CalDavBackend"/>
<referencedClass name="Sabre\VObject\Reader"/>
<referencedClass name="OC\DB\Exceptions\DbalException"/>
<referencedClass name="OCA\OpenRegister\Db\Exception"/>
</errorLevel>
</UndefinedClass>
<InaccessibleMethod errorLevel="suppress"/>
<UndefinedMagicMethod errorLevel="suppress"/>
<UnusedClass errorLevel="suppress"/>
<PossiblyUnusedMethod errorLevel="suppress"/>
<UnusedMethod errorLevel="suppress"/>
<UnusedProperty errorLevel="suppress"/>
<PossiblyUnusedParam errorLevel="suppress"/>
<UnusedDocblockParam errorLevel="suppress"/>
<UnusedVariable errorLevel="suppress"/>
<PossiblyUnusedReturnValue errorLevel="suppress"/>
<RedundantCondition errorLevel="suppress"/>
<RedundantFunctionCall errorLevel="suppress"/>
<RedundantCast errorLevel="suppress"/>
<RedundantPropertyInitializationCheck errorLevel="suppress"/>
<StringIncrement errorLevel="suppress"/>
<InvalidDocblock errorLevel="suppress"/>
<MoreSpecificImplementedParamType errorLevel="suppress"/>
<MissingDependency errorLevel="suppress"/>
<UnevaluatedCode errorLevel="suppress"/>
<!-- Suppress external library/interface method issues -->
<UndefinedInterfaceMethod>
<errorLevel type="suppress">
<!-- Doctrine DBAL methods -->
<referencedMethod name="OCP\IDBConnection::getSchemaManager"/>
<!-- Nextcloud QueryBuilder methods -->
<referencedMethod name="OCP\DB\QueryBuilder\IQueryBuilder::escapeLikeParameter"/>
<!-- Nextcloud File methods -->
<referencedMethod name="OCP\Files\Node::fopen"/>
<referencedMethod name="OCP\Files\Node::getContent"/>
<!-- Search backend implementation methods -->
<referencedMethod name="OCA\OpenRegister\Service\Index\SearchBackendInterface::indexFiles"/>
<referencedMethod name="OCA\OpenRegister\Service\Index\SearchBackendInterface::getFileIndexStats"/>
<referencedMethod name="OCA\OpenRegister\Service\Index\SearchBackendInterface::fixMismatchedFields"/>
</errorLevel>
</UndefinedInterfaceMethod>
<!-- Suppress React library function calls -->
<UndefinedFunction>
<errorLevel type="suppress">
<referencedFunction name="React\Async\await"/>
</errorLevel>
</UndefinedFunction>
<!-- Suppress LLPhant dynamic property access -->
<UndefinedPropertyAssignment>
<errorLevel type="suppress">
<referencedProperty name="LLPhant\OpenAIConfig::$temperature"/>
<referencedProperty name="LLPhant\OpenAIConfig::$organizationId"/>
</errorLevel>
</UndefinedPropertyAssignment>
<UndefinedPropertyFetch>
<errorLevel type="suppress">
<referencedProperty name="LLPhant\OllamaConfig::$apiKey"/>
<referencedProperty name="LLPhant\OpenAIConfig::$apiKey"/>
<referencedProperty name="LLPhant\OpenAIConfig::$model"/>
<referencedProperty name="LLPhant\OpenAIConfig::$url"/>
</errorLevel>
</UndefinedPropertyFetch>
<!-- Suppress OrganisationMapper method calls from trait -->
<UndefinedMethod>
<errorLevel type="suppress">
<referencedMethod name="OCA\OpenRegister\Service\OrganisationService::getActiveOrganisationWithFallback"/>
<referencedMethod name="OCA\OpenRegister\Service\OrganisationService::getDefaultOrganisationFromConfig"/>
<referencedMethod name="OCA\OpenRegister\Service\OrganisationService::getOrganisationHierarchy"/>
<!-- Entity base class methods -->
<referencedMethod name="OCA\OpenRegister\Db\Register::getId"/>
<referencedMethod name="OCA\OpenRegister\Db\Schema::getId"/>
<referencedMethod name="OCA\OpenRegister\Db\Schema::getSlug"/>
<referencedMethod name="OCA\OpenRegister\Db\ObjectEntity::getRegister"/>
<referencedMethod name="OCA\OpenRegister\Db\ObjectEntity::getSchema"/>
</errorLevel>
</UndefinedMethod>
<!-- Suppress dead code warnings for defensive null checks -->
<NoValue errorLevel="suppress"/>
<TypeDoesNotContainNull errorLevel="suppress"/>
<TypeDoesNotContainType errorLevel="suppress"/>
<InvalidArrayOffset errorLevel="suppress"/>
<InvalidCast errorLevel="suppress"/>
<InvalidArgument errorLevel="suppress"/>
<InvalidTemplateParam errorLevel="suppress"/>
<InvalidReturnType errorLevel="suppress"/>
<InvalidReturnStatement errorLevel="suppress"/>
<MismatchingDocblockReturnType errorLevel="suppress"/>
<EmptyArrayAccess errorLevel="suppress"/>
<ImplementedReturnTypeMismatch errorLevel="suppress"/>
<InvalidMethodCall errorLevel="suppress"/>
<InvalidPropertyAssignmentValue errorLevel="suppress"/>
<InvalidThrow errorLevel="suppress"/>
<UnsupportedPropertyReferenceUsage errorLevel="suppress"/>
</issueHandlers>
<extraFiles>
<directory name="vendor/nextcloud/ocp" />
</extraFiles>
</psalm>