求助帖: gitlab 配置 Code Quality

查看 14|回复 0
作者:sorude   

  • 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
  • 您需要登录后才可以回帖 登录 | 立即注册

    返回顶部