V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sorude
V2EX  ›  程序员

求助帖: gitlab 配置 Code Quality

  •  
  •   sorude · 258 天前 · 797 次点击
    这是一个创建于 258 天前的主题,其中的信息可能已经有所发展或是发生改变。
    • gitlab 版本:12.5 [社区版]

    • codequality:0.87.3

    .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
    
    2 条回复    2024-03-13 18:09:55 +08:00
    sorude
        2
    sorude  
    OP
       258 天前
    @defunct9 感谢 我试下!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3243 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:57 · PVG 21:57 · LAX 05:57 · JFK 08:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.