squirrelphp/entities

View on GitHub
tools/psalm.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<psalm
    errorLevel="2"
    reportMixedIssues="false"
    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"
    errorBaseline="tools/psalm-baseline.xml"
    findUnusedBaselineEntry="true"
    findUnusedCode="false"
    autoloader="vendor/autoload.php"
    resolveFromConfigFile="false"
    cacheDirectory="tools/cache/psalm"
>
    <projectFiles>
        <directory name="src" />
        <directory name="bin" />
        <directory name="tests" />
        <ignoreFiles>
            <directory name="vendor" />
            <directory name="tests/TestClasses" />
            <directory name="tests/TestEntitiesInvalidBlob" />
            <directory name="tests/TestEntitiesInvalidFieldUnionType" />
            <directory name="tests/TestEntitiesInvalidNoEntityName" />
            <directory name="tests/TestEntitiesInvalidNoFieldName" />
            <directory name="tests/TestEntitiesNoType" />
        </ignoreFiles>
    </projectFiles>

    <issueHandlers>
        <!-- Conflicts with tests where invalid arguments are tested -->
        <InvalidArgument>
            <errorLevel type="suppress">
                <directory name="tests"/>
            </errorLevel>
        </InvalidArgument>
        <!-- Files are created by generator, but psalm does not understand that -->
        <MissingFile>
            <errorLevel type="suppress">
                <file name="tests/RepositoriesGenerateCommandTest.php"/>
            </errorLevel>
        </MissingFile>
    </issueHandlers>

    <plugins>
        <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
        <pluginClass class="Psalm\MockeryPlugin\Plugin"/>
    </plugins>
</psalm>