Psalm: Feature Request: Statistic of all issues by level

Created on 11 Feb 2020  Â·  3Comments  Â·  Source: vimeo/psalm

Is there a way to produce the following statistics for a code basis:

# level 3
23 DeprecatedMethod
20 DeprecatedProperty
10 DeprecatedClass
...

# level 9
...
20 UndefinedDocblockClass
10 ParadoxicalCondition
5 InvalidThrow

This would be a great way to get an overview over which issues (with few occurrences) can be easily fixed and set to "error" afterwards.

Most helpful comment

There's (undocumented) output format called json-summary that produces something similar:
image

All 3 comments

There's (undocumented) output format called json-summary that produces something similar:
image

Ideally Psalm would do this for you – running --init would pick the best level for your project

Psalm now does this for you magically

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muglug picture muglug  Â·  3Comments

Ocramius picture Ocramius  Â·  3Comments

vudaltsov picture vudaltsov  Â·  3Comments

tux-rampage picture tux-rampage  Â·  3Comments

staabm picture staabm  Â·  3Comments