gitlab_clippy

Crates.iogitlab_clippy
lib.rsgitlab_clippy
version1.0.3
sourcesrc
created_at2020-10-18 18:04:58.813441
updated_at2021-12-10 17:27:30.583125
descriptionConvert clippy warnings into GitLab Code Quality report
homepagehttps://gitlab.com/dlalic/gitlab-clippy
repositoryhttps://gitlab.com/dlalic/gitlab-clippy
max_upload_size
id302321
size71,989
Sven Neumann (svenfoo)

documentation

README

GitLab Clippy

pipeline status coverage report

Convert clippy warnings into GitLab Code Quality report

Usage

GitLab CI example

clippy:
  stage: lint
  before_script:
    - rustup component add clippy
    - cargo install gitlab_clippy
  script:
    - cargo clippy
  after_script:
    - cargo clippy --message-format=json | gitlab-clippy > gl-code-quality-report.json
  artifacts:
    reports:
      codequality: gl-code-quality-report.json
    expire_in: 1 week
  rules:
    - if: '$CODE_QUALITY_DISABLED'
      when: never
    - if: '$CI_PIPELINE_SOURCE == "push"'

Demo of results showing inside a MR can be viewed here.

Locally

  1. Install with
cargo install gitlab_clippy
  1. Run with
cargo clippy --message-format=json | gitlab-clippy
Commit count: 198

cargo fmt