-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpsalm.xml
More file actions
51 lines (43 loc) · 1.72 KB
/
psalm.xml
File metadata and controls
51 lines (43 loc) · 1.72 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
<?xml version="1.0"?>
<psalm
errorLevel="4"
resolveFromConfigFile="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"
findUnusedBaselineEntry="false"
findUnusedCode="false"
cacheDirectory=".psalm-cache"
>
<projectFiles>
<directory name="upload"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
<stubs>
<file name="stubs/opencart_stubs.php"/>
</stubs>
<issueHandlers>
<!-- OpenCart uses magic properties -->
<UndefinedMagicPropertyFetch errorLevel="suppress"/>
<UndefinedThisPropertyFetch errorLevel="suppress"/>
<UndefinedPropertyFetch errorLevel="suppress"/>
<!-- debug_after_index.php is require'd from Response::output() (non-global scope) -->
<InvalidGlobal errorLevel="suppress"/>
<!-- Debug panel uses globals and mixed types -->
<MixedArgument errorLevel="info"/>
<MixedAssignment errorLevel="info"/>
<MixedArrayAccess errorLevel="info"/>
<MixedMethodCall errorLevel="info"/>
<MixedOperand errorLevel="info"/>
<!-- Allow exit in specific cases -->
<ForbiddenCode errorLevel="info"/>
<!-- OpenCart has same class names in admin and catalog -->
<DuplicateClass errorLevel="suppress"/>
<!-- Explicit type casts for SQL security - intentional -->
<RedundantCast errorLevel="suppress"/>
<!-- OpenCart controllers have properties set by framework -->
<PropertyNotSetInConstructor errorLevel="suppress"/>
</issueHandlers>
</psalm>