-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support to output result in multiple formats #481
Comments
Hi! |
I'm using it in GitLab CI. It displays the stdout in the web interface, and that's the easiest way to see it, but it also accepts the Code Climate output format to keep track of the differences and display how the code improved or regressed in code quality in a merge request. I'm currently doing something like echo '[]' > codeclimate.json
golangcilint run || golangcilint run --out-format codeclimate > codeclimate.json So it runs once if everything is good, but runs twice to generate the non empty code climate report otherwise. |
Likewise, it would be useful to have stdout show an easy to read output, and additional output to a file for CI to digest |
Yes, it's not possible to generate output of a single run in multiple formats, is it? :-) |
got it, I didn't understand it properly first |
+1, very useful as our CI has junit support but we also want standard output |
👍 was looking for this as well (logging in human-readable format, and write a junit.xml for Jenkins). One comment on the proposed format;
Using colons ( Alternatives worth considering;
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Dear stale bot, please do not close this issue. Best wishes, Fabian |
We can add Latest |
I think improving caching is definitely more important and running golangci-lint per output might be ok for a lot of users. We are running golangci-lint per application in a monorepository with ~50x Go-Applications. |
Still hoping for this feature 🙏 |
Is there any idea/indication of when a new release will be created that includes this? |
It would be great if it would be possible to produce results in multiple formats of a run.
This can be useful if you e.g. want to run golangci-lint in CI and send a human-readable output (line-number) in a plain-text report to the user and also have a checkstyle result to process it and show it in the CI tool.
Syntax could be like:
The text was updated successfully, but these errors were encountered: