Skip to content
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

Gitlab code quality support #2283

Closed
lhimstedt opened this issue Sep 17, 2022 · 6 comments · Fixed by #2648
Closed

Gitlab code quality support #2283

lhimstedt opened this issue Sep 17, 2022 · 6 comments · Fixed by #2648

Comments

@lhimstedt
Copy link

User story.
As a developer, I can export the results to a Gitlab code quality report to see a summary of my code quality in the MR widget and the pipeline.

Is your feature request related to a problem?
Currently, there is only a format enum for JUnit. That's cool because you can see the results in Gitlab, but I prefer linting results in the code quality section. The linting results are more about the quality, not in all cases about functionality.

Describe the solution you'd like
It would be cool to have another output format in the CodeClimate JSON format.

@lhimstedt
Copy link
Author

I found no related issue, maybe there was a discussion about this. Would be cool to get some other perspectives about this.

@mnaumanali94 mnaumanali94 added the enhancement New feature or request label Sep 23, 2022
@mnaumanali94
Copy link
Contributor

This would be a very nice addition. Would you be interested in creating a PR for this? 🙏🏼

@wtrocki
Copy link

wtrocki commented Nov 9, 2022

I have done some investigation on how this can be done and it looks there is no easy way to actually get number of results.
Results in recent versions have been changed to only contain certain serverity level. By default info level severity is not logged so we would never get any information about how many rules have run in the format interface.

@astec-dsa
Copy link

Would be nice to get this feature.

@smsalisbury
Copy link
Contributor

The PR linked above will resolve this issue.

@stoplight-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on @stoplight/spectral-formatters-1.4.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants