golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
15.82k stars 1.39k forks source link

Generate html report #436

Closed dharmjit closed 3 years ago

dharmjit commented 5 years ago

Hi, Is there a way to generate html report after running golangci-lint. I am trying to make it work with gitlab and show the output on gitlab pages.

Thanks in advance.

jirfag commented 5 years ago

Hi! Sorry, It's not planned. Can you use goreportcard?

dharmjit commented 5 years ago

Hi, Its an internal project and hosted on gitlab. goreportcard can't be used as of now. I was thinking of some html formats supported by golangci-lint. Any other options available. Thanks

Jackmrzhou commented 5 years ago

Same here! Our group would be willing use this project if generating html is supported, but we have to use another linter which supports generating html currently.

jirfag commented 5 years ago

pull requests are welcome :)

stale[bot] commented 4 years ago

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.

schaudhary111 commented 4 years ago

Hi, any update on this enhancement. We need to publish lint results as html report and it will be great if this project provides formatting option for html. Thanks

SVilgelm commented 4 years ago

As a workaround, you can use junit-xml output: golangci-lint run --out-format junit-xml ./... and then convert it to html

or feel free to create a pull request with necessary changes