Skip to content

Commit f01cfa9

Browse files
authored
Merge pull request #3125 from briannesbitt/issue/3037-add-psalm-config
Add Psalm config
2 parents 28fe8d6 + b81878c commit f01cfa9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/phpmd.xml export-ignore
1313
/phpstan.neon export-ignore
1414
/phpunit.xml.dist export-ignore
15+
/psalm.xml export-ignore
1516
/.github export-ignore
1617
/tests export-ignore
1718

psalm.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="5"
4+
resolveFromConfigFile="true"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns="https://getpsalm.org/schema/config"
7+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
findUnusedBaselineEntry="true"
9+
findUnusedCode="true"
10+
>
11+
<projectFiles>
12+
<directory name="src" />
13+
<file name="lazy/Carbon/UnprotectedDatePeriod.php" />
14+
<file name="lazy/Carbon/TranslatorStrongType.php" />
15+
<file name="lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php" />
16+
<ignoreFiles>
17+
<directory name="vendor" />
18+
</ignoreFiles>
19+
</projectFiles>
20+
</psalm>

0 commit comments

Comments
 (0)