File: psalm.xml

package info (click to toggle)
php-phpdocumentor-type-resolver 1.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,444 kB
  • sloc: php: 26,466; xml: 102; makefile: 50
file content (64 lines) | stat: -rw-r--r-- 2,724 bytes parent folder | download | duplicates (3)
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
<?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 file:///composer/vendor/vimeo/psalm/config.xsd"
    errorLevel="1"
>
    <projectFiles>
        <directory name="src" />
        <ignoreFiles>
            <directory name="vendor" />
        </ignoreFiles>
    </projectFiles>

    <issueHandlers>
        <UnnecessaryVarAnnotation>
            <errorLevel type="info">
                <file name="src/Types/ContextFactory.php"/>
            </errorLevel>
        </UnnecessaryVarAnnotation>
        <UnusedMethodCall>
            <errorLevel type="suppress">
                <referencedMethod name="phpDocumentor\Reflection\Types\AggregatedType::add"/>
            </errorLevel>
        </UnusedMethodCall>
        <DocblockTypeContradiction>
            <errorLevel type="info">
                <!-- ArrayIterator::current can return null if iterated even if ArrayIterator::valid isn't checked before -->
                <file name="src/TypeResolver.php"/>
                <!-- Not sure what's going on. I don't think it's possible to have false here -->
                <file name="src/Types/ContextFactory.php"/>
            </errorLevel>
        </DocblockTypeContradiction>
        
        <RedundantConditionGivenDocblockType>
            <errorLevel type="info">
                <!-- ArrayIterator::current can return null if iterated even if ArrayIterator::valid isn't checked before -->
                <file name="src/TypeResolver.php"/>
            </errorLevel>
        </RedundantConditionGivenDocblockType>

        <InvalidArgument>
            <errorLevel type="suppress">
                <referencedFunction name="PHPStan\PhpDocParser\Lexer\Lexer::__construct"/>
                <referencedFunction name="PHPStan\PhpDocParser\Parser\ConstExprParser::__construct"/>
                <referencedFunction name="PHPStan\PhpDocParser\Parser\TypeParser::__construct"/>
            </errorLevel>
        </InvalidArgument>

        <UndefinedDocblockClass>
            <errorLevel type="suppress">
                <referencedClass name="PHPStan\PhpDocParser\ParserConfig"/>
            </errorLevel>
        </UndefinedDocblockClass>

        <MixedArgument>
            <errorLevel type="suppress">
                <referencedFunction name="PHPStan\PhpDocParser\Lexer\Lexer::__construct"/>
                <referencedFunction name="PHPStan\PhpDocParser\Parser\ConstExprParser::__construct"/>
                <referencedFunction name="PHPStan\PhpDocParser\Parser\TypeParser::__construct"/>
            </errorLevel>
        </MixedArgument>
    </issueHandlers>
</psalm>