File: psalm.xml

package info (click to toggle)
php-random-compat 2.0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 368 kB
  • sloc: php: 1,104; sh: 48; xml: 30; makefile: 4
file content (47 lines) | stat: -rw-r--r-- 2,070 bytes parent folder | download
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
<?xml version="1.0"?>
<psalm
        autoloader="psalm-autoload.php"
        useDocblockTypes="true"
        totallyTyped="true"
>
    <projectFiles>
        <directory name="lib" />
    </projectFiles>
    <issueHandlers>
        <ReferenceConstraintViolation errorLevel="info" />
        <!-- Type strictness surrounding /dev/urandom reads -->
        <RedundantConditionGivenDocblockType errorLevel="info" />
        <!-- We have to be explicit because PHP 5 lacks scalar types -->
        <DocblockTypeContradiction errorLevel="info" />
        <!-- We're strict about runtime checks -->
        <DuplicateFunction errorLevel="info" />
        <!-- We're a polyfill library! -->
        <UnresolvableInclude errorLevel="info" />
        <!-- Because we put the variants into their own subdirectory -->
        <DuplicateClass errorLevel="info" />
        <!-- Later versions of Psalm are only PHP 7 compatible, which
             sees our redefinition of Error and TypeError as duplicate
             class errors. -->
        <UndefinedDocblockClass errorLevel="info" />
        <!-- COM is Windows only -->
        <UndefinedConstant errorLevel="info" />
        <!-- The Mcrypt constants aren't defined in PHP 7.2 -->
        <MissingReturnType errorLevel="info" />
        <!-- False positive with some versions of (Psalm, PHP) -->
        <InvalidReturnType errorLevel="info" />
        <!-- The "last resort" function in lib/random.php -->
        <MixedInferredReturnType errorLevel="suppress" />
        <!-- Only used in totallyTyped mode -->

        <UnnecessaryVarAnnotation errorLevel="info" />
        <!-- This is necessary for a polyfill -->
        <UnusedFunctionCall errorLevel="info" />
        <!-- Not interested in the result tbh -->
        <RedundantCast errorLevel="info" />
        <RedundantCastGivenDocblockType errorLevel="info" />
        <!-- Doesn't matter -->
        <UnusedVariable errorLevel="info" />
        <ArgumentTypeCoercion errorLevel="info" />
        <UnevaluatedCode errorLevel="info" />
    </issueHandlers>
</psalm>