-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpsalm.xml
More file actions
66 lines (66 loc) · 2.83 KB
/
psalm.xml
File metadata and controls
66 lines (66 loc) · 2.83 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
61
62
63
64
65
66
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="5"
resolveFromConfigFile="true"
cacheDirectory="build/cache/psalm"
allowStringToStandInForClass="true"
errorBaseline="build/config/psalm/psalm-baseline.xml"
findUnusedVariablesAndParams="true"
findUnusedBaselineEntry="false"
findUnusedCode="true"
phpVersion="8.3"
autoloader="vendor/autoload.php"
>
<projectFiles>
<directory name="src/SonsOfPHP"/>
<ignoreFiles>
<!-- Ignore test suites across packages to reduce noise like UnusedClass -->
<directory name="src/SonsOfPHP/Bard/Tests"/>
<directory name="src/SonsOfPHP/Bridge/*/*/Tests"/>
<directory name="src/SonsOfPHP/Bridge/*/*/*/Tests"/>
<directory name="src/SonsOfPHP/Bundle/*/Tests"/>
<directory name="src/SonsOfPHP/Component/*/Tests"/>
<!-- Ignore vendors -->
<directory name="src/SonsOfPHP/Bard/vendor/*"/>
<directory name="src/SonsOfPHP/Bridge/*/*/vendor/*"/>
<directory name="src/SonsOfPHP/Bridge/*/*/*/vendor/*"/>
<directory name="src/SonsOfPHP/Bundle/*/vendor/*"/>
<directory name="src/SonsOfPHP/Component/*/vendor/*"/>
<directory name="src/SonsOfPHP/Contract/*/vendor/**"/>
<directory name="vendor/**"/>
<!-- Ignore Rector config which references Rector classes outside our autoload -->
<file name="rector.php" />
</ignoreFiles>
</projectFiles>
<extraFiles>
<directory name="tools/phpunit/vendor/phpunit/phpunit/src"/>
</extraFiles>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<issueHandlers>
<UnusedClass errorLevel="info" />
<UnnecessaryVarAnnotation errorLevel="info" />
<!-- Keep other findings visible but non-blocking for DX -->
<PossiblyUnusedMethod errorLevel="info" />
<!-- Psalm false-positives in Bard console helpers and operations naming -->
<UndefinedInterfaceMethod>
<errorLevel type="info">
<directory name="src/SonsOfPHP/Bard/src/Console/Command" />
</errorLevel>
</UndefinedInterfaceMethod>
<ParamNameMismatch>
<errorLevel type="info">
<directory name="src/SonsOfPHP/Bard/src/Operation" />
</errorLevel>
</ParamNameMismatch>
<InvalidArgument errorLevel="info" />
<UndefinedClass errorLevel="info" />
<NullableReturnStatement errorLevel="info" />
<InvalidCatch errorLevel="info" />
<LessSpecificImplementedReturnType errorLevel="info" />
</issueHandlers>
</psalm>