求助帖: gitlab 配置 Code Quality

2024-03-13 09:12:37 +08:00
 sorude

.gitlab-ci.yml:

code_quality:
  stage: test
  image: docker:stable
  variables:
    DOCKER_DRIVER: overlay2
    CODECLIMATE_DEV: 1
    CODECLIMATE_DEBUG: 1
  services:
    - docker:stable-dind
  script:
    - echo $CI_PROJECT_DIR
    - docker run
        --env SOURCE_CODE="$CI_PROJECT_DIR/src"
        --env CODECLIMATE_DEV=1
        --env CODECLIMATE_DEBUG=1
        --env CODECLIMATE_CONFIG="/code/.codeclimate.yml"
        --volume "$CI_PROJECT_DIR":/code
        --volume /var/run/docker.sock:/var/run/docker.sock
        "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.87.3" /code

.codeclimate.yml:

version: "2"
plugins:
  eslint:
    enabled: true
    channel: 'eslint-8'
exclude_patterns:
  - config/
  - db/
  - dist/
  - features/
  - "**/node_modules/"
  - script/
  - "**/spec/"
  - "**/test/"
  - "**/tests/"
  - Tests/
  - "**/vendor/"
  - "**/*_test.go"
  - "**/*.d.ts"
  - "**/*.min.js"
  - "**/*.min.css"
  - "**/__tests__/"
  - "**/__mocks__/"

报错信息:

 [2024-03-12T10:55:43.641051 #1] DEBUG -- : engine stderr: 12
D, [2024-03-12T10:55:43.641164 #1] DEBUG -- : engine stderr: Parser process id: 12
D, [2024-03-12T10:55:43.641187 #1] DEBUG -- : engine stderr: codeclimate-parser socket not present
D, [2024-03-12T10:55:43.641203 #1] DEBUG -- : engine stderr: waiting 1s...
D, [2024-03-12T10:55:44.786484 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
D, [2024-03-12T10:55:44.786566 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
D, [2024-03-12T10:55:44.786589 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
D, [2024-03-12T10:55:44.800479 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
D, [2024-03-12T10:55:44.800580 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
D, [2024-03-12T10:55:44.800612 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
D, [2024-03-12T10:55:44.808453 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
I, [2024-03-12T10:55:45.400602 #1]  INFO -- : finished engine structure
1158 次点击
所在节点    程序员
2 条回复
defunct9
2024-03-13 14:25:06 +08:00
sorude
2024-03-13 18:09:55 +08:00
@defunct9 感谢 我试下!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://ex.noerr.eu.org/t/1023085

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX