Gitlab代码质量:报告在哪里? [英] Gitlab code quality: where is the report?
本文介绍了Gitlab代码质量:报告在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此项目上: https://gitlab.com/tyvain/parcoursup/tree/master
我有一个代码质量阶段:
I have a code quality stage:
code_quality:
stage: code_quality
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [gl-code-quality-report.json]
此阶段始终以"passed"结束.日志: https://gitlab.com/tyvain/parcoursup/-/jobs/94665791
This stage always endup 'passed'. Logs: https://gitlab.com/tyvain/parcoursup/-/jobs/94665791
我怀疑我的代码是否完美,因此应该在某处存在一些代码质量问题.
I doubt that my code is perfect, so there should be some code quality issues somewhere.
应该在哪里输出代码质量报告?
此参数是什么:路径:[gl-code-quality-report.json]"?
Where is the code quality report supposed to be output ?
What is this parameter: "paths: [gl-code-quality-report.json]" ?
推荐答案
此处有2个问题:
- 该报告仅可用于"gitlab EE版"中的合并请求(并非免费)
- 可以在此处将报告作为json文件下载:
这篇关于Gitlab代码质量:报告在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文