-
Notifications
You must be signed in to change notification settings - Fork 441
/
psalm.xml
74 lines (67 loc) · 2.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0"?>
<psalm
findUnusedPsalmSuppress="true"
findUnusedCode="true"
findUnusedVariablesAndParams="true"
strictBinaryOperands="true"
errorLevel="1"
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"
>
<projectFiles>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
<directory name="static-analysis"/>
<directory name="src"/>
<directory name="tests"/>
</projectFiles>
<issueHandlers>
<ImpureStaticProperty>
<errorLevel type="suppress">
<!-- the Money object uses internal static properties to cache the calculator
that is in use, as well as the calculators that are available. This is
not supposed to change at runtime, and therefore the VO can still be
considered immutable -->
<file name="src/Money.php"/>
</errorLevel>
</ImpureStaticProperty>
<ImpureVariable>
<errorLevel type="suppress">
<!-- @TODO is this even needed? -->
<!-- we can safely access $this->amount within Money -->
<file name="src/Money.php"/>
</errorLevel>
</ImpureVariable>
<InternalClass>
<errorLevel type="suppress">
<!-- Internal symbols of the library can be used from within the test suite -->
<directory name="tests"/>
</errorLevel>
</InternalClass>
<InternalMethod>
<errorLevel type="suppress">
<!-- Internal symbols of the library can be used from within the test suite -->
<directory name="tests"/>
</errorLevel>
</InternalMethod>
<PossiblyUnusedMethod>
<errorLevel type="suppress">
<!-- calculators are not swapped at runtime in our test suite - they are a dead/deprecated concept
that will likely be removed, but we generally do not register calculators manually -->
<referencedMethod name="Money\Exchange\ReversedCurrenciesExchange::registerCalculator"/>
<referencedMethod name="Money\Exchange\IndirectExchange::registerCalculator"/>
<referencedMethod name="Money\Money::registerCalculator"/>
</errorLevel>
</PossiblyUnusedMethod>
<MissingTemplateParam>
<errorLevel type="suppress">
<directory name="src"/>
</errorLevel>
</MissingTemplateParam>
</issueHandlers>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
</psalm>