Is there a way to include rule level in error output? #10929
Replies: 1 comment 4 replies
-
All of this seems backwards to me.
You should analyse the project after every commit and fail if there are any errors. You should set a specific level you want to pass (like level 8) and make sure there are never any errors on that level commited on your main branch. I don't see how your workflow is useful. If one day your project passes on level 8, and another day doesn't pass on level 0, how is that useful and actionable? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm analysing our projects with PHPStan nightly. In order to know which level a project is passing at (i.e. zero errors), I need to analyse multiple times. If the rule level was included in the output, I'd be able to group together the number of errors at each level.
I've looked at the various error formatters and looked at the ErrorFormatter interface, but can't see a way to get the rule level for the error that was generated.
Doing this would allow me to analyse at level 9, then count the number of errors at each specific level.
Beta Was this translation helpful? Give feedback.
All reactions