In the first iteration of GitLab Code Quality, we hardcoded detection of the job by codeclimate, and the artifacts by codeclimate.json.
Also, we should think about this example: https://docs.gitlab.com/ce/ci/examples/code_climate.html. Technically it's still accurate as an example of integrating with any third-party service, but we link to this from other docs, so we should talk about our feature name, Code Quality, instead.
For backwards compatibility, we should look for either codeclimate or codequality, and deprecate codeclimate.
Proposal
Links / references
Documentation blurb
Overview
What is it?
Why should someone use this feature?
What is the underlying (business) problem?
How do you use this feature?
Use cases
Who is this for? Provide one or more use cases.
Feature checklist
Make sure these are completed before closing the issue,
with a link to the relevant commit.
Also, we should think about this example: https://docs.gitlab.com/ce/ci/examples/code_climate.html. Technically it's still accurate as an example of integrating with any third-party service, but we link to this from other docs, so we should talk about our feature name, Code Quality, instead.
Agreed on cross-referencing. Also, yeah, it's kinda silly where we've put things, but it's not obvious where else things should go. When Auto DevOps ships in 10.0, we should probably have a near-top-level topic for it, and Auto Code Quality should be in there, which might give us more options.
At any rate, I understand the idea of leaving the code climate doc unchanged because it's an example of a third-party integration, but it's not in a section about third-party integrations. It's in an "other" category. I think if we called it an example of doing code quality analysis, it would be just as reasonable.
@markpundsack Thanks. All codeclimate job names in documentation will be replaced.
Anyway, I think we should leave the artifact name codeclimate.json as is. If we integrate a new 3rd-party-code-quality-checker in GitLab(e.g. codechecker.json), code_quality job should detect either codeclimate.json or codechecker.json. And I assume we can't name it as code_quality.json unless there are identifiers in the json.
@dosuken123 I believe that in future we should not care about actual artifact name as long as we annotate that information somewhere. Is this an arbitrary build results with support for multiple artifacts? https://gitlab.com/gitlab-org/gitlab-ce/issues/13227 :)
@dosuken123 I just realized we have a dependency on this for the Auto DevOps feature, which we're hoping to test end-to-end pretty soon. What's the ETA for this change?
@dosuken123 It looks like the MR doesn't handle the rename of the artifact. Sorry if that wasn't clear, but the original intention was to rename both the job and the artifact to codequality and codequality.json respectively.
It seems natural to me that feature is codequality, but the format of the report is codeclimate, and thus why we use codeclimate.json. Assuming that we use codequality.json is assuming that codeclimate format is used by everyone for this kind of feature.