1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Added context for updating the baseline files

This commit is contained in:
Ricardo Boss 2022-01-19 13:32:47 +01:00 committed by GitHub
parent 1c3d15f5df
commit bd1385df72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,13 +119,13 @@ or using the configuration:
</psalm>
```
To update that baseline file (to remove references to things that have been fixed), use
To update that baseline file, use
```
vendor/bin/psalm --update-baseline
```
Baseline files are a great way to gradually improve a codebase.
This will remove fixed issues, but will _not_ add new issues. To add new issues, use `--set-baseline`.
In case you want to run psalm without the baseline, run
@ -133,6 +133,8 @@ In case you want to run psalm without the baseline, run
vendor/bin/psalm --ignore-baseline
```
Baseline files are a great way to gradually improve a codebase.
## Using a plugin
If you want something more custom, like suppressing a certain type of error on classes that implement a particular interface, you can use a plugin that implements `AfterClassLikeVisitInterface`