Skip to content

Commit

Permalink
Update psalm-baseline.xml
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Mar 10, 2024
1 parent 86a7c3f commit b54de06
Showing 1 changed file with 5 additions and 173 deletions.
178 changes: 5 additions & 173 deletions psalm-baseline.xml
Expand Up @@ -204,12 +204,6 @@
<code><![CDATA[get]]></code>
</MissingThrowsDocblock>
</file>
<file src="src/Factory/SymfonyApplicationFactory.php">
<MixedArgument>
<code><![CDATA[InstalledVersions::getPrettyVersion(Compliance::PACKAGE) ??
throw new RuntimeException('Unable to determine version!')]]></code>
</MixedArgument>
</file>
<file src="src/Interface/Composer/DependencyInterface.php">
<PossiblyUnusedMethod>
<code><![CDATA[name]]></code>
Expand Down Expand Up @@ -286,12 +280,17 @@
<code><![CDATA[$contents['require']['php'] ?? '*']]></code>
<code><![CDATA[$contents['require-dev'] ?? []]]></code>
<code><![CDATA[$this->contents['license']]]></code>
<code><![CDATA[$this->contents['name']]]></code>
<code><![CDATA[$this->contents['version'] ??
InstalledVersions::getPrettyVersion($this->contents['name'])]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$dependency]]></code>
</MixedAssignment>
<PossiblyNullArgument>
<code><![CDATA[$this->contents['version'] ??
InstalledVersions::getPrettyVersion($this->contents['name'])]]></code>
</PossiblyNullArgument>
<PossiblyUnusedMethod>
<code><![CDATA[getComposerJsonPath]]></code>
<code><![CDATA[getContents]]></code>
Expand Down Expand Up @@ -632,173 +631,6 @@
<code><![CDATA[Psalm]]></code>
</UnusedClass>
</file>
<file src="src/Workspace.php">
<ArgumentTypeCoercion>
<code><![CDATA[$levels]]></code>
</ArgumentTypeCoercion>
<ForbiddenCode>
<code><![CDATA[\var_dump(...$args)]]></code>
<code><![CDATA[\var_dump(...$args)]]></code>
</ForbiddenCode>
<InvalidOperand>
<code><![CDATA[\time()]]></code>
</InvalidOperand>
<MismatchingDocblockReturnType>
<code><![CDATA[bool]]></code>
</MismatchingDocblockReturnType>
<MissingConstructor>
<code><![CDATA[$character]]></code>
<code><![CDATA[$contentChanges]]></code>
<code><![CDATA[$document]]></code>
<code><![CDATA[$end]]></code>
<code><![CDATA[$line]]></code>
<code><![CDATA[$start]]></code>
</MissingConstructor>
<MissingParamType>
<code><![CDATA[$args]]></code>
<code><![CDATA[$args]]></code>
</MissingParamType>
<MissingTemplateParam>
<code><![CDATA[IteratorAggregate]]></code>
</MissingTemplateParam>
<MissingThrowsDocblock>
<code><![CDATA[throw new Exception('Failed to save file ' . $documentUri->toString());]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::chgrp() failed because the path does not exist: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::chmod() failed because the path does not exist: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::chown() failed because the path does not exist: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::copy() failed because the source path does not exist: %s',
$source
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::create() failed because the path already exists: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::createDirectory() failed because the path already exists: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::delete() failed because the path does not exist: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::deleteDirectory() failed because the path does not exist: %s',
$path
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf(
'Filesystem::move() failed because the source path does not exist: %s',
$source
));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf('Filesystem::append() failed to write to path: %s', $path));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf('Filesystem::prepend() failed to write to path: %s', $path));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf('Filesystem::read() failed to read from path: %s', $path));]]></code>
<code><![CDATA[throw new RuntimeException(\sprintf('Filesystem::write() failed to write to path: %s', $path));]]></code>
</MissingThrowsDocblock>
<MixedArgument>
<code><![CDATA[$documentUri->toString()]]></code>
<code><![CDATA[$path]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$file]]></code>
<code><![CDATA[$path]]></code>
<code><![CDATA[$splFileInfo]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[TextDocument]]></code>
<code><![CDATA[TextDocument]]></code>
<code><![CDATA[TextDocument]]></code>
<code><![CDATA[bool]]></code>
</MixedInferredReturnType>
<MixedMethodCall>
<code><![CDATA[getPathname]]></code>
<code><![CDATA[isFile]]></code>
<code><![CDATA[toString]]></code>
<code><![CDATA[toString]]></code>
</MixedMethodCall>
<MixedOperand>
<code><![CDATA[$documentUri->toString()]]></code>
<code><![CDATA[$file]]></code>
</MixedOperand>
<MixedReturnStatement>
<code><![CDATA[$this->textDocuments->offsetGet($uri) ?? $this->createTextDocument($uri)]]></code>
<code><![CDATA[$this->textDocuments->offsetGet($uri) ?? $this->createTextDocument($uri)]]></code>
<code><![CDATA[$this->textDocuments->offsetGet($uri) ?? throw new Exception('Document not found')]]></code>
<code><![CDATA[match (true) {
$this->textDocuments->offsetExists($documentUri) => $this->textDocuments->offsetGet($documentUri),
default => $this->createTextDocument($documentUri),
}]]></code>
<code><![CDATA[match (true) {
$this->textDocuments->offsetExists($documentUri) => $this->textDocuments->offsetGet($documentUri),
default => $this->createTextDocument($documentUri),
}]]></code>
</MixedReturnStatement>
<MixedReturnTypeCoercion>
<code><![CDATA[Generator<SplFileInfo>]]></code>
</MixedReturnTypeCoercion>
<PossiblyFalseArgument>
<code><![CDATA[$tempUri]]></code>
<code><![CDATA[$tempUri]]></code>
<code><![CDATA[$tempUri]]></code>
<code><![CDATA[\file_get_contents($path)]]></code>
<code><![CDATA[\scandir($path)]]></code>
</PossiblyFalseArgument>
<PossiblyInvalidDocblockTag>
<code><![CDATA[@var WeakMap<DocumentUri,TextDocument>]]></code>
</PossiblyInvalidDocblockTag>
<PossiblyUnusedMethod>
<code><![CDATA[allFiles]]></code>
<code><![CDATA[append]]></code>
<code><![CDATA[chgrp]]></code>
<code><![CDATA[chmod]]></code>
<code><![CDATA[chown]]></code>
<code><![CDATA[copy]]></code>
<code><![CDATA[createFile]]></code>
<code><![CDATA[delete]]></code>
<code><![CDATA[delete]]></code>
<code><![CDATA[directories]]></code>
<code><![CDATA[exists]]></code>
<code><![CDATA[files]]></code>
<code><![CDATA[getTextDocument]]></code>
<code><![CDATA[glob]]></code>
<code><![CDATA[hasTextDocument]]></code>
<code><![CDATA[missing]]></code>
<code><![CDATA[move]]></code>
<code><![CDATA[onDidChangeTextDocument]]></code>
<code><![CDATA[openTextDocument]]></code>
<code><![CDATA[prepend]]></code>
<code><![CDATA[saveTextDocument]]></code>
<code><![CDATA[setTextDocument]]></code>
</PossiblyUnusedMethod>
<PossiblyUnusedProperty>
<code><![CDATA[$character]]></code>
<code><![CDATA[$languageId]]></code>
<code><![CDATA[$line]]></code>
<code><![CDATA[$version]]></code>
</PossiblyUnusedProperty>
<UnusedClass>
<code><![CDATA[Range]]></code>
<code><![CDATA[TextDocumentChangeEvent]]></code>
</UnusedClass>
<UnusedParam>
<code><![CDATA[$callback]]></code>
<code><![CDATA[$flags]]></code>
<code><![CDATA[$pattern]]></code>
</UnusedParam>
<UnusedProperty>
<code><![CDATA[$filesystem]]></code>
<code><![CDATA[$rootPath]]></code>
</UnusedProperty>
</file>
<file src="tests/Unit/Service/ComposerTest.php">
<PossiblyFalseArgument>
<code><![CDATA[$root]]></code>
Expand Down

0 comments on commit b54de06

Please sign in to comment.