-
-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing source attribute in checkstyle errorFormat #1205
Comments
Huge +1 on this. I am also running PHPStan against a pretty large legacy codebase and when the total issues found above 10K Jenkins UI becomes unresponsive and finding useful report entries without reducing down the level is really challenging and time consuming. PHPCompatibility plugin has also both And the format is like below:
It would be nice improvement using same approach in PHPStan. To summarize; there are at least two places can be improved:
I also read @ondrejmirtes 's notes under another PR (closed) with a note that class names of Rules does not meant to be human readable. I made some experiments locally on this improvement and it definitely requires a design aggrement and plan before randomly start working on a PR. I would like to hear opinions on this. For eg:
I would like to give a hand on implementing this feature after having a solid plan. |
You're using PHPStan wrong. You cannot have 10K errors on level 0. If you have them, it might simply be a matter of a wrong autoload config. Get the number of issues on level 0 down to 0 and then increase the level to 1, rinse and repeat. *+1"s do not get features implemented. The main problem is that rules do not currently have user-friendly identifiers suitable for this, but I'd be able to guide someone how to add them, if they'd be interested in the implementation. |
Currently, the extensibility of error messages is planned to be done through |
Hi, can we have at least some constant value for source (like |
Implemented: phpstan/phpstan-src@f66cf5b Here's the list of identifiers: https://phpstan.org/error-identifiers More context: #8981 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
missing source attribute in checkstyle errorFormat
The checkstyle errorFormat does not include a source attribute. We are attempting to integrate phpstan with our existing Jenkins build system, and are using a plugin to parse checkstyle xml error reports.
unlike #481 this is not causing any errors parsing the xml file, but the Jenkins UI does not show anything useful.
screen shot from phpcs checkstyle report
screen shot from phpstan checkstyle report
The text was updated successfully, but these errors were encountered: