Skip to content

Commit efff124

Browse files
committed
minor #51175 CI: Disable Psalm's findUnusedBaselineEntry feature (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- CI: Disable Psalm's `findUnusedBaselineEntry` feature | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Psalm has introduced a feature for detecting unused entries in the error baseline. This is useful for a baseline that is maintained along with the code because it tells the developer when the baseline starts to smell and needs to be regenerated. However, we use the baseline differently: We generate the baseline on the fly in order to check if a PR introduces new errors. Failing on baseline entries that can be purged is not what we want in that case because a contributor cannot fix those errors. Example for a Psalm run that failed because of unused baseline entries: https://github.com/symfony/symfony/actions/runs/5706412328/job/15462071408 Commits ------- 9ffbb53 CI: Disable Psalm's findUnusedBaselineEntry feature
2 parents 3034e8e + 9ffbb53 commit efff124

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

psalm.xml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
cacheDirectory="./.github/psalm/cache/"
99
errorBaseline=".github/psalm/psalm.baseline.xml"
10+
findUnusedBaselineEntry="false"
1011
>
1112
<projectFiles>
1213
<directory name="src" />

0 commit comments

Comments
 (0)