Closed Dirbaio closed 2 years ago
r? @ryankurte
(rust-highfive has picked a reviewer for you, use r? to override)
If we keep clippy but not enforcing it, the moment we decide to not fix a warning because we don't agree with it, all following PRs will have the red :x: forever, due to an issue unrelated to the PR. At that point it stops being a useful flag for code review, and it's also confusing for contributors because a red :x: in a PR usually means you did something wrong.
IMO if we keep it we should enforce it, otherwise we should remove it.
making unnecessary/unrelated/even contestable changes in unrelated crates in order to land PRs.
Random warnings won't appear when landing a feature PR, because the clippy version is pinned. We can update it in dedicated PRs, so the changes for any new warnings don't mix with normal PRs.
Up to you @ryankurte, @therealprof
Build succeeded:
Depends on #394
CI wasn't actually enforcing clippy, because
actions-rs/clippy-check
needs to run aspull_request_target
to get the token to add the "fancy" comments to the diff. It does nothing when ran aspull_request
.pull_request_target
is troublesome because it uses the yaml frommaster
instead of from the PR branch, which means when bumping clippy you don't know whether CI passes until after it's merged. I've made it usecargo clippy
instead, which works onpull_request
.