Skip to content

Commit 6e94da2

Browse files
committed
Enable psalm check for tests folder
1 parent ee69075 commit 6e94da2

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

psalm.xml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
<?xml version="1.0"?>
22
<psalm
3-
errorLevel="4"
4-
resolveFromConfigFile="true"
5-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6-
xmlns="https://getpsalm.org/schema/config"
7-
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8-
errorBaseline="psalm-baseline.xml"
3+
errorLevel="4"
4+
resolveFromConfigFile="true"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns="https://getpsalm.org/schema/config"
7+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
errorBaseline="psalm-baseline.xml"
99
>
10-
<projectFiles>
11-
<directory name="src" />
12-
<ignoreFiles>
13-
<directory name="vendor" />
14-
</ignoreFiles>
15-
</projectFiles>
10+
<projectFiles>
11+
<directory name="src"/>
12+
<directory name="tests"/>
13+
<ignoreFiles>
14+
<directory name="vendor"/>
15+
</ignoreFiles>
16+
</projectFiles>
1617

17-
<plugins>
18-
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
19-
</plugins>
18+
<plugins>
19+
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
20+
</plugins>
21+
22+
<issueHandlers>
23+
<MissingPropertyType errorLevel="suppress"/>
24+
25+
<InternalMethod>
26+
<errorLevel type="suppress">
27+
<directory name="tests/ValueObject"/>
28+
</errorLevel>
29+
</InternalMethod>
30+
</issueHandlers>
2031
</psalm>

0 commit comments

Comments
 (0)