-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpsalm.xml
More file actions
61 lines (51 loc) · 1.81 KB
/
psalm.xml
File metadata and controls
61 lines (51 loc) · 1.81 KB
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
<?xml version="1.0"?>
<psalm
name="SimpleSAMLphp"
useDocblockTypes="true"
hideExternalErrors="true"
findUnusedBaselineEntry="true"
findUnusedCode="false"
>
<projectFiles>
<directory name="config-templates" />
<directory name="hooks" />
<directory name="src" />
<directory name="templates" />
<directory name="tests" />
<directory name="public" />
<!-- Ignore deprecated classes -->
<ignoreFiles>
<directory name="public/assets" />
<file name="vendor/bin/psalm" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<LessSpecificReturnType errorLevel="info" />
<LessSpecificImplementedReturnType errorLevel="info" />
<!-- level 3 issues - slightly lazy code writing, but probably low false-negatives -->
<DeprecatedMethod errorLevel="info" />
<MissingClosureReturnType errorLevel="info" />
<MissingReturnType errorLevel="info" />
<MissingPropertyType errorLevel="info" />
<InvalidDocblock errorLevel="info" />
<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />
<MissingClosureParamType errorLevel="info" />
<MissingParamType errorLevel="info" />
<UnusedClass errorLevel="info" />
<PossiblyUnusedMethod errorLevel="info" />
<PropertyNotSetInConstructor errorLevel="suppress" />
<MissingClosureReturnType errorLevel="suppress" />
<InvalidArgument>
<errorLevel type="suppress">
<directory name="tests" /> <!-- Since a lot of stub/mocks are used in tests, suppress InvalidArgument -->
</errorLevel>
</InvalidArgument>
<!-- Ignore UnresolvableInclude on CLI-scripts -->
<UnresolvableInclude>
<errorLevel type="suppress">
<file name="tests/bootstrap.php" />
</errorLevel>
</UnresolvableInclude>
</issueHandlers>
</psalm>