#report #code-quality #gitlab #package

app gitlab-report

Generates GitLab reports from cargo's JSON output

12 releases (2 stable)

1.0.3 Sep 2, 2023
0.1.10 Apr 26, 2023
0.1.7 Oct 1, 2022
0.1.6 Apr 16, 2022
0.1.3 Oct 27, 2021
Download history 347/week @ 2023-06-08 410/week @ 2023-06-15 396/week @ 2023-06-22 422/week @ 2023-06-29 206/week @ 2023-07-06 363/week @ 2023-07-13 423/week @ 2023-07-20 218/week @ 2023-07-27 229/week @ 2023-08-03 410/week @ 2023-08-10 360/week @ 2023-08-17 393/week @ 2023-08-24 429/week @ 2023-08-31 582/week @ 2023-09-07 342/week @ 2023-09-14 232/week @ 2023-09-21

1,680 downloads per month

MIT license

65KB
1K SLoC

gitlab-report

A command line utility to generate GitLab compatible reports from cargo JSON output.

Supported formats

Input Output
test JUnit
test OpenMetrics
clippy Code Climate
clippy OpenMetrics
bench OpenMetrics
audit GitLab Security Report (SAST)
audit GitLab Security Report (Dependency Scanning)
geiger GitLab Security Report (SAST)
geiger GitLab Security Report (Dependency Scanning)
fmt -

Usage

cargo test --no-fail-fast -- -Z unstable-options --format json | gitlab-report -p test > report.xml
cargo clippy --message-format=json | gitlab-report -p clippy > gl-code-quality-report.json
cargo bench -- -Z unstable-options --format json | gitlab-report -p bench > metrics.txt
cargo audit --json | gitlab-report -p audit > gl-sast-report.json

Dependencies

~2.9–4MB
~75K SLoC