summaryrefslogtreecommitdiffstats
path: root/vendor/paragonie/sodium_compat/psalm-above-3.xml
blob: 63b8c80fc18a8c205aa3dbbed6c5fa2518d6aa57 (plain) (blame)
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
<?xml version="1.0"?>
<psalm
        useDocblockTypes="true"
        totallyTyped="true"
>
    <projectFiles>
        <directory name="src" />
    </projectFiles>
    <issueHandlers>
        <InvalidFunctionCall errorLevel="suppress" />
        <!--
            Previous issue type is suppressed because we have to use a string
            as a function name for PHP 5.2 compatibility. When testing, be sure
            to change this to "info".
         -->

        <UndefinedFunction errorLevel="info" />
        <!--
            Inconsistently erroneous.
        -->

        <DuplicateClass errorLevel="info" />
        <!--
            Psalm isn't correctly identifying the guard conditions that return
            early if a class already exists.
        -->
        <RedundantConditionGivenDocblockType errorLevel="suppress" />

        <TooFewArguments errorLevel="info" />

        <DocblockTypeContradiction errorLevel="suppress" />
        <RedundantCondition errorLevel="info" />
        <!--
            Redundancy is good for PHP <7
        -->

        <TypeDoesNotContainType errorLevel="info" />
        <!--
            This mostly fails on `PHP_INT_SIZE === 4`
        -->

        <InternalMethod errorLevel="suppress" />
        <!--
            We mark methods as internal.
        -->
        <PossiblyNullArgument errorLevel="suppress" />
        <!--
            Not interesting
        -->

        <RedundantCast errorLevel="info" />
        <UnnecessaryVarAnnotation errorLevel="suppress" />
        <UnusedVariable errorLevel="info" />
        <UnusedFunctionCall errorLevel="info" />

    </issueHandlers>
</psalm>