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

chore: Add .cargo/config.toml for workspace-level lint config #6166

Merged
merged 1 commit into from
Jan 29, 2022

Conversation

Herschel
Copy link
Member

@Herschel Herschel commented Jan 29, 2022

Currently it is not directly possible to configure lints for the entire workspace via TOML, which forced us to repeat #![allow] blocks in each crate.

embark pointed out this workaround to configure lints at the workspace level via RUSTFLAGS:

EmbarkStudios/rust-ecosystem#22 (comment)

Remove the common #![allow] blocks and switch to this method for global lint config. I was also able to remove a few allows that are no longer problematic.

Temporarily allow needless_borrow lint to fix CI. This lint is buggy pending this fix:
rust-lang/rust-clippy#8355

Currently it is not directly possible to configure lints for the
entire workspace via TOML, which forced us to repeat `#![allow]`
blocks in each crate.

embark pointed out this workaround to configure lints at the
workspace level via RUSTFLAGS:

EmbarkStudios/rust-ecosystem#22 (comment)

Remove the common `#![allow]` blocks and switch to this method for
global lint config.

Temporarily allow `needless_borrow` lint, buggy pending this fix:
rust-lang/rust-clippy#8355
@Herschel Herschel merged commit 55da3cd into ruffle-rs:master Jan 29, 2022
@Herschel Herschel deleted the workspace-lint-config branch January 29, 2022 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant