Skip to content

Commit

Permalink
Update static analysis configs to refine file inclusions
Browse files Browse the repository at this point in the history
Removed the tests directory from `phpstan.neon` and added it to the `ignoreFiles` section in `psalm.xml` for better alignment. Also disabled `findUnusedBaselineEntry` and `findUnusedCode` in `psalm.xml` for more granular control over analysis.
  • Loading branch information
koriym committed Nov 21, 2024
1 parent 503c382 commit 12c5030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ parameters:
level: max
paths:
- src
- tests
excludePaths:
- */tests/tmp/*
- */tests/Fake/*
4 changes: 3 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
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="false"
findUnusedCode="false"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
<directory name="tests" />
</ignoreFiles>
</projectFiles>
</psalm>

0 comments on commit 12c5030

Please sign in to comment.