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

docs: mention default level (#5340)

* docs: mention default level

* Update error_levels.md
This commit is contained in:
Markus Staab 2021-03-11 06:06:02 +01:00 committed by GitHub
parent c606c89006
commit 5747f1df14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,9 @@ You can run Psalm in at different levels of strictness from 1 to 8.
Level 1 is the most strict, level 8 is the most lenient.
When no level is explicitly defined, psalm defaults to level 2.
In case `totallyTyped` is enabled, psalm defaults to level 1.
Some issues are [always treated as errors](#always-treated-as-errors). These are issues with a very low probability of false-positives.
At [level 1](#errors-that-only-appear-at-level-1) all issues (except those emitted for opt-in features) that Psalm can find are treated as errors. Those issues include any situation where Psalm cannot infer the type of a given expression.