-
Notifications
You must be signed in to change notification settings - Fork 8
/
psalm.xml
50 lines (47 loc) · 1.72 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
<?xml version="1.0"?>
<psalm
cacheDirectory="var/cache/psalm"
findUnusedVariablesAndParams="true"
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"
autoloader="vendor/shopware/core/DevOps/StaticAnalyze/PHPStan/phpstan-bootstrap.php"
>
<projectFiles>
<directory name="src"/>
<directory name="tests"/>
<ignoreFiles>
<directory name="vendor"/> <!-- would otherwise inspect vendor -->
<directory name="../../../src/"/> <!-- platform/src -->
<file name="tests/TestBootstrapper.php" />
</ignoreFiles>
</projectFiles>
<plugins>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<forbiddenFunctions>
<function name="dump"/>
<function name="dd"/>
<function name="var_dump"/>
<function name="error_log"/>
</forbiddenFunctions>
<issueHandlers>
<PropertyNotSetInConstructor errorLevel="info" />
<MissingFile>
<errorLevel type="info">
<file name="tests/TestBootstrap.php"/>
</errorLevel>
</MissingFile>
<UnimplementedInterfaceMethod errorLevel="info">
<errorLevel type="info">
<file name="tests/ShopwarePluginClassTest.php" />
</errorLevel>
</UnimplementedInterfaceMethod>
<UndefinedDocblockClass>
<errorLevel type="suppress">
<referencedClass name="UnitEnum" />
</errorLevel>
</UndefinedDocblockClass>
</issueHandlers>
</psalm>