forked from doctrine/DoctrineBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml.dist
76 lines (76 loc) · 3.36 KB
/
psalm.xml.dist
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
75
76
<?xml version="1.0"?>
<psalm
errorLevel="4"
phpVersion="8.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<plugins>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<projectFiles>
<ignoreFiles>
<directory name="vendor"/>
<!-- Deprecated classes, not worth fixing -->
<file name="Command/ImportMappingDoctrineCommand.php"/>
<file name="Command/Proxy/OrmProxyCommand.php"/>
<file name="DependencyInjection/Compiler/WellKnownSchemaFilterPass.php"/>
</ignoreFiles>
<directory name="CacheWarmer"/>
<directory name="Command"/>
<directory name="Controller"/>
<directory name="DataCollector"/>
<directory name="Dbal"/>
<directory name="DependencyInjection"/>
<directory name="EventSubscriber"/>
<directory name="Mapping"/>
<directory name="Repository"/>
<directory name="Tests"/>
<directory name="Twig"/>
<file name="ConnectionFactory.php"/>
<file name="DoctrineBundle.php"/>
<file name="ManagerConfigurator.php"/>
<file name="Registry.php"/>
</projectFiles>
<issueHandlers>
<RedundantPropertyInitializationCheck>
<errorLevel type="suppress">
<!-- Properties can be uninitialized in tests if setUp() fails. -->
<directory name="Tests"/>
</errorLevel>
</RedundantPropertyInitializationCheck>
<UndefinedClass>
<errorLevel type="suppress">
<!-- We use the "Foo" namespace in unit tests. We are aware that those classes don't exist. -->
<referencedClass name="Foo\*"/>
<!-- Dropped in ORM 3 -->
<referencedClass name="Doctrine\ORM\Tools\EntityGenerator"/>
<referencedClass name="Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper"/>
<referencedClass name="Doctrine\ORM\Tools\DisconnectedClassMetadataFactory"/>
<referencedClass name="Doctrine\ORM\Mapping\Driver\YamlDriver"/>
<referencedClass name="Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver"/>
<referencedClass name="Doctrine\ORM\Mapping\Driver\AnnotationDriver"/>
<referencedClass name="Doctrine\ORM\ORMException"/>
<!-- Dropped in DBAL 4 -->
<referencedClass name="Doctrine\DBAL\Exception"/>
</errorLevel>
</UndefinedClass>
<DuplicateClass>
<errorLevel type="suppress">
<!-- Conditional class definition-->
<file name="Repository/RepositoryFactoryCompatibility.php"/>
<file name="Repository/ServiceEntityRepository.php"/>
</errorLevel>
</DuplicateClass>
<UndefinedMethod>
<errorLevel type="suppress">
<!-- Too tricky to configure very nested configuration in a way Psalm understands -->
<file name="DependencyInjection/Configuration.php" />
</errorLevel>
</UndefinedMethod>
</issueHandlers>
</psalm>