gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Cannot generate codeclimate.json if user token is not provided #197

Open rsassoon opened 5 years ago

rsassoon commented 5 years ago

Hei, when I look at the examples for creating a codeclimate report there is no 'sonar.gitlab.user_token' specified for the maven sonar goal, but if I do not set it the report is not generated. I get the following error in gitlab pipeline:

WARNING: codeclimate.json: no matching files ERROR: No files to upload

Is that the intended behavior? I'd prefer not having to set the token for it and just have the report as the feedback on MR's. In this case it would also make sense to turn off the comments on the MR.

Anything that can be done?