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] Generate codeclimate.json for Gitlab Code Quality MR Widget #296

Open
jkroepke opened this issue Jan 14, 2021 · 7 comments
Open
Labels
enhancement New feature or request

Comments

@jkroepke
Copy link

jkroepke commented Jan 14, 2021

Gitlab released the Code Quality MR Widget to the core edition of gitlab.

https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html

It would be great to see this feature as part of the pull request decorator for gitlab.

Currently, the defunct plugin https://github.com/gabrie-allaigre/sonar-gitlab-plugin provide this feature but running this plugin could be a risk since no one maintain this plugin and no one could guarantee the compatibility betten this and sonar-gitlab-plugin plugin.

Take a look at the implementation details: https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html#implementing-a-custom-tool

@jkroepke jkroepke changed the title [Gitlab] Generate codeclimate.json for Code Quality [Gitlab] Generate codeclimate.json for Gitlab Code Quality MR Widget Jan 14, 2021
@mc1arke mc1arke added the enhancement New feature or request label Jan 23, 2021
@123Haynes
Copy link

123Haynes commented Jan 30, 2021

Note that this fork of the project works just fine with the current sonarqube version (8.6.x).
https://github.com/javamachr/sonar-gitlab-plugin

So I suggest looking at the fork for inspiration instead of the defunct version.

@lucasoares
Copy link

Note that this fork of the project works just fine with the current sonarqube version (8.6.x).
https://github.com/javamachr/sonar-gitlab-plugin

So I suggest looking at the fork for inspiration instead of the defunct version.

I'm currently using the sonar-gitlab-plugin. The issue here is because we can't use pullrequest feature of sonarqube-community-branch-plugin to generate codeclimate report:
image

Apparently, if I do not specify a branch name if I'm using both plugins, the sonar-gitlab-plugin generates an empty report.

It would be awesome if this branch plugin could generate the report file!

@adpeyre
Copy link

adpeyre commented Feb 23, 2021

I agree with you @lucasoares !

@jkroepke
Copy link
Author

jkroepke commented Feb 26, 2021

Cross-Reference for empty reports on pull requests

javamachr/sonar-gitlab-plugin#9

I have this problem on a developer edition instance, too.

@lucasoares
Copy link

Hello guys.. Any news here?

@ezintz
Copy link

ezintz commented May 14, 2022

I am not quite sure, but would it make sense to "merge" efforts instead of "duplication" of the logic? I think that would result in a great benefit for the community. 🤓

@lucasoares
Copy link

Agreed @ezintz

Unfortunately I do not have time right now to bring code climate generation from the other plugin to this one but it would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants