mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
bdc9170edc
* Run Psalm on src as well as Static Analysis Fixture Psalm baselining feature is used to prevent immediate build failures - psalm will just cause failures for errors caused by future changes to the code. See https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file * Fix MixedArgument issues in OrderedTimeCodec Potentially unpack should be documented as returning string[] instead of array to make this unecassary. * Fix Psalm PossiblyNullPropertyAssignmentValue issues * Add psalm-immutable annotation to Uuid class * Fix Psalm MixedArgument issues * Fix MissingImmutableAnnotation psalm issue * Fix Psalm MixedAssignment issue * Fix Psalm InvalidReturnStatement / InvalidReturnType issue * Add ImpureMethodCall issues to baseline. Fixing these in one place just moves them somewhere else. * Exclude psalm-baseline.xml from exported git archives
22 lines
1017 B
XML
22 lines
1017 B
XML
<?xml version="1.0"?>
|
|
<psalm
|
|
totallyTyped="true"
|
|
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"
|
|
errorBaseline="psalm-baseline.xml"
|
|
>
|
|
<projectFiles>
|
|
<directory name="static-analysis" />
|
|
|
|
<!-- At time of writing Psalm reports 65 errors in src, but these are suppressed by being listed in the errorBaseline file
|
|
referenced above. Any new errors will cause a build failure. It might be a good project for someone to go through the errorBaseline
|
|
and delete as many issues as possible, updating the code as they go to top producing the errors.
|
|
|
|
To see the errors in Psalm output, run psalm with the `<double-hyphen> ignore-baseline` option (literal double-hypen is not permitted in XML comment)
|
|
-->
|
|
<directory name="src" />
|
|
</projectFiles>
|
|
</psalm>
|