Skip to content

Commit

Permalink
Add Psalm config
Browse files Browse the repository at this point in the history
Fix #3037
  • Loading branch information
kylekatarnls committed Dec 21, 2024
1 parent 28fe8d6 commit b81878c
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 b81878c

Please sign in to comment.