Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set clippy lints in workspace (requires rust 1.74) #2390

Merged
merged 13 commits into from
Dec 13, 2023

Conversation

gilescope
Copy link
Contributor

@gilescope gilescope commented Nov 17, 2023

We currently use a bit of a hack in .cargo/config to make sure that clippy isn't too annoying by specifying the list of lints.

There is now a stable way to define lints for a workspace. The only down side is that every crate seems to have to opt into this so there's a few files modified in this PR.

Dependencies:

  • PR that upgrades CI to use rust 1.74 is merged.

@gilescope gilescope requested review from a team November 17, 2023 18:41
@gilescope gilescope requested a review from a team November 17, 2023 18:41
@gilescope gilescope requested review from koute and a team as code owners November 17, 2023 18:41
@paritytech-review-bot paritytech-review-bot bot requested review from a team November 17, 2023 18:42
@gilescope
Copy link
Contributor Author

@alvicsam let me know when CI happens to have rust updated and then this PR should go green.

@bkchr bkchr added the R0-silent Changes should not be mentioned in any release notes label Nov 17, 2023
@paritytech-review-bot paritytech-review-bot bot requested a review from a team November 20, 2023 09:28
@alvicsam
Copy link
Contributor

alvicsam commented Dec 7, 2023

@gilescope I updated rust in CI image to 1.74

Cargo.toml Show resolved Hide resolved
@gilescope
Copy link
Contributor Author

build green. time to merge?

@bkontur bkontur merged commit be8e626 into paritytech:master Dec 13, 2023
116 checks passed
@bkontur
Copy link
Contributor

bkontur commented Dec 13, 2023

build green. time to merge?

yes, I've just started discussion in CI channel about adding another check for all Cargo.toml to contain:

[lints]
workspace = true

but lets merge and do follow up

bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
We currently use a bit of a hack in `.cargo/config` to make sure that
clippy isn't too annoying by specifying the list of lints.

There is now a stable way to define lints for a workspace. The only down
side is that every crate seems to have to opt into this so there's a
*few* files modified in this PR.

Dependencies:

- [x] PR that upgrades CI to use rust 1.74 is merged.

---------

Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: Branislav Kontur <[email protected]>
Co-authored-by: Liam Aharon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.