Skip to content

Commit

Permalink
Merge pull request #3125 from briannesbitt/issue/3037-add-psalm-config
Browse files Browse the repository at this point in the history
Add Psalm config
  • Loading branch information
kylekatarnls authored Dec 21, 2024
2 parents 28fe8d6 + b81878c commit f01cfa9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/phpmd.xml export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/.github export-ignore
/tests export-ignore

Expand Down
20 changes: 20 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<psalm
errorLevel="5"
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="true"
findUnusedCode="true"
>
<projectFiles>
<directory name="src" />
<file name="lazy/Carbon/UnprotectedDatePeriod.php" />
<file name="lazy/Carbon/TranslatorStrongType.php" />
<file name="lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>

0 comments on commit f01cfa9

Please sign in to comment.