-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpsalm.xml
53 lines (48 loc) · 2.02 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
<?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"
>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<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>
<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>
</issueHandlers>
</psalm>