#clippy #gitlab #cli

bin+lib gitlab_clippy

Convert clippy warnings into GitLab Code Quality report

7 releases (4 stable)

1.0.3 Dec 10, 2021
1.0.2 May 13, 2021
1.0.1 Feb 18, 2021
1.0.0 Nov 5, 2020
0.1.2 Oct 21, 2020

#41 in #clippy

Download history 804/week @ 2025-07-14 756/week @ 2025-07-21 1376/week @ 2025-07-28 1037/week @ 2025-08-04 1188/week @ 2025-08-11 1124/week @ 2025-08-18 1140/week @ 2025-08-25 863/week @ 2025-09-01 1291/week @ 2025-09-08 1593/week @ 2025-09-15 1266/week @ 2025-09-22 1281/week @ 2025-09-29 1645/week @ 2025-10-06 1225/week @ 2025-10-13 1494/week @ 2025-10-20 1328/week @ 2025-10-27

5,753 downloads per month

MIT license

19KB
174 lines

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

Dependencies

~3–4MB
~76K SLoC