oai-pmh2/psalm.xml.dist

65 lines
2.5 KiB
XML

<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="1"
resolveFromConfigFile="true"
findUnusedBaselineEntry="true"
findUnusedCode="true"
findUnusedVariablesAndParams="true"
reportMixedIssues="false"
>
<issueHandlers>
<!--
Psalm doesn't recognize some variables always being set because of prior validation.
-->
<PossiblyNullReference>
<errorLevel type="suppress">
<file name="src/Console/UpdateFormatsCommand.php"/>
</errorLevel>
</PossiblyNullReference>
<!--
DBAL entities require getter/setter methods even if they are never called directly.
-->
<PossiblyUnusedMethod errorLevel="suppress"/>
<PossiblyUnusedReturnValue errorLevel="suppress"/>
<!--
Some properties are not set in the constructor and hence checked for initialization.
-->
<PropertyNotSetInConstructor errorLevel="suppress"/>
<RedundantPropertyInitializationCheck errorLevel="suppress"/>
<!--
We deliberately want to evaluate empty strings as FALSE in those files.
-->
<RiskyTruthyFalsyComparison>
<errorLevel type="suppress">
<file name="src/Console/AddRecordCommand.php"/>
<file name="src/Console/AddSetCommand.php"/>
</errorLevel>
</RiskyTruthyFalsyComparison>
<!--
Those classes are dynamically used depending on the given OAI verb.
@see src/Middleware/Dispatcher.php:95
-->
<UnusedClass>
<errorLevel type="suppress">
<referencedClass name="OCC\OaiPmh2\Middleware\GetRecord"/>
<referencedClass name="OCC\OaiPmh2\Middleware\Identify"/>
<referencedClass name="OCC\OaiPmh2\Middleware\ListIdentifiers"/>
<referencedClass name="OCC\OaiPmh2\Middleware\ListMetadataFormats"/>
<referencedClass name="OCC\OaiPmh2\Middleware\ListRecords"/>
<referencedClass name="OCC\OaiPmh2\Middleware\ListSets"/>
</errorLevel>
</UnusedClass>
</issueHandlers>
<projectFiles>
<file name="bin/cli"/>
<directory name="public"/>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
</psalm>