-
Notifications
You must be signed in to change notification settings - Fork 17
/
psalm.xml
70 lines (63 loc) · 2.79 KB
/
psalm.xml
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
65
66
67
68
69
70
<?xml version="1.0"?>
<psalm
xmlns="https://getpsalm.org/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
name="Example Psalm config with recommended defaults"
errorLevel="1"
>
<projectFiles>
<directory name="bin"/>
<directory name="src"/>
<directory name="test"/>
</projectFiles>
<issueHandlers>
<!--
we do a loooooooot of kinky stuff with infection's internals: that's by "design",
but no way around it for now.
-->
<InternalClass errorLevel="suppress"/>
<InternalMethod errorLevel="suppress"/>
<!--
we extend from infection internals, because upstream has no interfaces for
some symbols.
-->
<InvalidExtendClass errorLevel="suppress"/>
<MethodSignatureMismatch>
<errorLevel type="suppress">
<!-- some methods are considered "final" (via annotations), but we override them -->
<file name="src/Roave/InfectionStaticAnalysis/RunStaticAnalysisAgainstEscapedMutant.php"/>
</errorLevel>
</MethodSignatureMismatch>
<MissingImmutableAnnotation>
<errorLevel type="suppress">
<!-- some methods are considered "immutable", but we override them -->
<file name="src/Roave/InfectionStaticAnalysis/RunStaticAnalysisAgainstEscapedMutant.php"/>
</errorLevel>
</MissingImmutableAnnotation>
<ConstructorSignatureMismatch>
<errorLevel type="suppress">
<!-- we extend some classes to be type-compatible, but override everything (including ctor) -->
<file name="src/Roave/InfectionStaticAnalysis/RunStaticAnalysisAgainstEscapedMutant.php"/>
</errorLevel>
</ConstructorSignatureMismatch>
<ImplementedParamTypeMismatch>
<errorLevel type="suppress">
<!-- we extend some classes to be type-compatible, but override everything -->
<file name="src/Roave/InfectionStaticAnalysis/RunStaticAnalysisAgainstEscapedMutant.php"/>
</errorLevel>
</ImplementedParamTypeMismatch>
<!-- phpunit tests are quite wonky - this is to be fixed in newer phpunit versions -->
<PropertyNotSetInConstructor>
<errorLevel type="suppress">
<directory name="test"/>
</errorLevel>
</PropertyNotSetInConstructor>
<!-- composer/package-versions-deprecated is in use by design -->
<DeprecatedClass>
<errorLevel type="suppress">
<referencedClass name="PackageVersions\Versions"/>
</errorLevel>
</DeprecatedClass>
</issueHandlers>
</psalm>