-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Add checkstyle formatter #271
Add checkstyle formatter #271
Conversation
Ah this is pretty cool, never heard of checkstyle before. |
* @param string $dir | ||
* @param array<string> $metrics | ||
* | ||
* @throws Exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olivernybroe What do you think?
@bu4ak I don't know this format, can you add documentation about it on the website? |
It's hard to find xml structure, but you can see phpstan's implementation It's schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olivernybroe What do you think?
I think it looks good. I cannot verify if he implemented it correctly, but it looks pretty solid and I'll just trust him that he knows the standard.
It looks like this is something often used with Jenkins and is the format is originally from Java. I think it's a good addition and something that we could keep having support for.
The format looks pretty basic, and as long as we don't change our API for the Details
object, there shouldn't be that much maintaining.
@bu4ak If you could fix the style tests that are failing and just add a few lines about it in the docs. Then I'll say it's ready to get merged. 😄
@olivernybroe could you help to understand what is a problem?
|
@dmitryuk There are some errors. One of them is you have an unused import of the To fix that one, do the same as we did for the json formatter, by adding a line in the phpstan file. Line 26 in 5d011f0
You can test it locally by running |
@olivernybroe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Thanks for the contribution! 👍
Please release new version. |
Added checkstyle formatter. It needs for ci.
This reporting format also supported by phpstan (larastan).