mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
Update docs with better introductory config
This commit is contained in:
parent
c702ebe13c
commit
54ccd9dfd2
@ -30,6 +30,11 @@ cat > psalm.xml << EOF
|
|||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="src" />
|
<directory name="src" />
|
||||||
</projectFiles>
|
</projectFiles>
|
||||||
|
<issueHandlers>
|
||||||
|
<MissingReturnType errorLevel="info" />
|
||||||
|
<MissingClosureReturnType errorLevel="info" />
|
||||||
|
<MissingPropertyType errorLevel="info" />
|
||||||
|
</issueHandlers>
|
||||||
</psalm>
|
</psalm>
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
@ -40,4 +45,4 @@ Then run Psalm with:
|
|||||||
./vendor/bin/psalm
|
./vendor/bin/psalm
|
||||||
```
|
```
|
||||||
|
|
||||||
The above config is spartan, and will show you *all* possible errors, including many that are likely irrelevant to you. A more lenient config is provided [here](examples/psalm.default.xml).
|
The above config is fairly spartan, and will show you *all* possible errors, including many that might be irrelevant to you. A more lenient config is provided [here](examples/psalm.default.xml), and you can learn about how to suppress certain issues [here](https://github.com/vimeo/psalm/wiki/Dealing-with-code-issues).
|
||||||
|
Loading…
Reference in New Issue
Block a user