Allow clippy::style lints
Turns out GitHub is clever enough to pick up clippy warnings from us
just running it, and showing them in PRs under a "Unchanged files with
check annotations (beta)" header.
The only warnings currently shown are style warnings, and we agreed we
don't want to risk putting off contributors over style issues. So
explicitly allow (don't warn in the logs for) this category of clippy
lints.
This means that the only clippy categories left that prints warnings
(Warn) are:
clippy::complexity
clippy::perf
And the only category of lints that fails the CI build (Deny) remains to
be:
clippy::correctness
See https://rust-lang.github.io/rust-clippy/master/index.html for a
catalog of all lints.
commitc0d945c0acbd6dd75971f6ee04a8b294471ead7f
authorMartin Nordholts <enselic@gmail.com>
dateMon 28 Dec 2020, 12:51 (6 years ago)
parent6d0e765
.github/workflows/CICD.yml+1−1
@@ -27,7 +27,7 @@ jobs:
2727 uses: actions-rs/cargo@v1
2828 with:
2929 command: clippy
30− args: --all-targets --all-features
30+ args: --all-targets --all-features -- --allow clippy::style
3131 - name: Test
3232 uses: actions-rs/cargo@v1
3333 with: