GitLab CI

你可以通过使用最新的稳定 rust docker 镜像将 Clippy 添加到 GitLab CI,如下面的 .gitlab-ci.yml CI 配置文件所示。

# Make sure CI fails on all warnings, including Clippy lints variables: RUSTFLAGS: "-Dwarnings" clippy_check: image: rust:latest script: - rustup component add clippy - cargo clippy --all-targets --all-features