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

Run clippy on workspace in CI #4614

Merged
merged 1 commit into from
Nov 7, 2022
Merged

Conversation

xJonathanLEI
Copy link
Contributor

Currently CI runs clippy as cargo clippy --all-targets without the --all flag, causing some code to be ignored. This PR enforces the --all flag and resolves some warnings from the addition of the flag.

@the-mikedavis
Copy link
Member

the-mikedavis commented Nov 7, 2022

Looks like --all is a deprecated alias for --workspace: https://github.com/rust-lang/cargo/blob/df56877805e613969da837e1ede28fda3a17481d/src/doc/src/commands/cargo-check.md?plain=1#L53-L54 (clippy options other than those in clippy --help are passed to cargo check).

@xJonathanLEI
Copy link
Contributor Author

Ah never realized it's deprecated since there's no depreciation warning. Fixed now. Thanks!

@kirawi kirawi added the S-waiting-on-review Status: Awaiting review from a maintainer. label Nov 7, 2022
@archseer archseer merged commit eddf9f0 into helix-editor:master Nov 7, 2022
@xJonathanLEI xJonathanLEI deleted the dev/clippy branch November 7, 2022 04:42
herkhinah pushed a commit to herkhinah/helix that referenced this pull request Dec 11, 2022
freqmod pushed a commit to freqmod/helix that referenced this pull request Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants