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 |
#1619 in Command line utilities
1,968 downloads per month
19KB
174 lines
GitLab Clippy
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
- Install with
cargo install gitlab_clippy
- Run with
cargo clippy --message-format=json | gitlab-clippy
Dependencies
~2.9–4MB
~75K SLoC