-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpsalm.xml
More file actions
58 lines (56 loc) · 2.29 KB
/
Copy pathpsalm.xml
File metadata and controls
58 lines (56 loc) · 2.29 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
52
53
54
55
56
57
58
<?xml version="1.0"?>
<!--
findUnusedBaselineEntry: is buggy, can create an invalid SARIF file that trips up CI/GH
(contains `"startLine":0,"endLine":0,"startColumn":0,"endColumn":0`)
set to true when https://github.com/vimeo/psalm/issues/9712 is fixed
-->
<psalm
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"
errorLevel="4"
findUnusedCode="false"
ensureOverrideAttribute="false"
errorBaseline="psalm-baseline.xml"
findUnusedBaselineEntry="false"
>
<projectFiles>
<directory name="."/>
<ignoreFiles allowMissingFiles="true">
<directory name="legacy"/>
<directory name="vendor"/>
<directory name="storage"/>
<directory name="bootstrap/cache"/>
<directory name="tests"/><!-- install psalm/plugin-phpunit and psalm/plugin-mockery for the full tests support -->
</ignoreFiles>
</projectFiles>
<plugins>
<pluginClass class="Psalm\LaravelPlugin\Plugin"/>
</plugins>
<issueHandlers>
<ClassMustBeFinal errorLevel="info"/>
<ImplicitToStringCast errorLevel="info"/>
<MissingAbstractPureAnnotation errorLevel="info"/>
<MissingClosureReturnType errorLevel="info"/>
<MissingImmutableAnnotation errorLevel="info"/>
<MissingInterfaceImmutableAnnotation errorLevel="info"/>
<MissingOverrideAttribute errorLevel="info"/>
<MissingPureAnnotation errorLevel="info"/>
<RedundantCast errorLevel="info"/>
<RedundantCondition errorLevel="info"/>
<UnnecessaryVarAnnotation errorLevel="suppress"/>
<!-- We use "variant" property types in UserData inheritance
to enforce certain children to un-optional some properties.
https://psalm.dev/265 says this is bad because
"for typed properties, this can cause a compile error".
But it doesn't, as long as the child's properties are a subset
of the (abstract) parent's.
Ideally psalm will learn about this at some point,
we downgrade it to info.
TODO: move to baseline, scope to files, document as semi-permanent?
(Alternatively, use copious line-level suppresses.)
-->
<NonInvariantPropertyType errorLevel="info"/>
<NonInvariantDocblockPropertyType errorLevel="info"/>
</issueHandlers>
</psalm>