forked from doctrine/persistence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
70 lines (70 loc) · 3.1 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
<?xml version="1.0"?>
<psalm
errorLevel="3"
phpVersion="8.1"
findUnusedPsalmSuppress="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"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src/Persistence" />
<directory name="tests" />
<ignoreFiles>
<directory name="vendor" />
<!-- this one is a mapping file in written in PHP -->
<file name="tests/Persistence/Mapping/_files/Doctrine.Tests.Persistence.Mapping.PHPTestEntity.php" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<TypeDoesNotContainType>
<errorLevel type="suppress">
<!-- Expected class list that is not a list<class-string> -->
<file name="tests/Persistence/Mapping/DefaultFileLocatorTest.php"/>
<file name="tests/Persistence/Mapping/SymfonyFileLocatorTest.php"/>
</errorLevel>
</TypeDoesNotContainType>
<NullArgument>
<errorLevel type="suppress">
<file name="src/Persistence/Reflection/RuntimeReflectionProperty.php"/>
<file name="tests/Persistence/Mapping/SymfonyFileLocatorTest.php"/>
</errorLevel>
</NullArgument>
<ArgumentTypeCoercion>
<errorLevel type="suppress">
<!-- On purpose to use a non existing class for tests -->
<file name="tests/Persistence/Mapping/RuntimeReflectionServiceTest.php"/>
</errorLevel>
</ArgumentTypeCoercion>
<MoreSpecificReturnType>
<errorLevel type="suppress">
<!-- FileDriver::loadMappingFile() in tests could have a more specific return, but is not needed -->
<file name="tests/Persistence/Mapping/FileDriverTest.php"/>
</errorLevel>
</MoreSpecificReturnType>
<RedundantCast>
<errorLevel type="suppress">
<!-- We're filtering invalid input- -->
<file name="src/Persistence/Mapping/Driver/SymfonyFileLocator.php"/>
</errorLevel>
</RedundantCast>
<UndefinedClass>
<errorLevel type="suppress">
<!-- We are testing what happens when calling the API with a non existent class -->
<file name="tests/Persistence/Mapping/ClassMetadataFactoryTest.php"/>
<file name="tests/Persistence/Mapping/RuntimeReflectionServiceTest.php"/>
</errorLevel>
</UndefinedClass>
<ArgumentTypeCoercion>
<errorLevel type="suppress">
<!-- Related to the above, since we are coercing a string to class-string -->
<file name="tests/Persistence/Mapping/ClassMetadataFactoryTest.php"/>
<file name="tests/Persistence/Mapping/RuntimeReflectionServiceTest.php"/>
</errorLevel>
</ArgumentTypeCoercion>
</issueHandlers>
<stubs>
<file name="psalm.phpstub" />
</stubs>
</psalm>