关于这个项目:https://gitlab.com/tyvain/parcoursup/tree/master
我有一个代码质量阶段:
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]
这个阶段总是以“通过”告终。日志:https://gitlab.com/tyvain/parcoursup/-/jobs/94665791
我怀疑我的代码是否完美,所以应该在某处存在一些代码质量问题。
代码质量报告应该在哪里输出?
这个参数是什么:“路径:[gl-code-quality-report.json]”?
最佳答案
关于Gitlab 代码质量 : where is the report?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52174028/