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

Configure Clippy to be pedantic #37

Open
tombruijn opened this issue Mar 23, 2022 · 1 comment
Open

Configure Clippy to be pedantic #37

tombruijn opened this issue Mar 23, 2022 · 1 comment
Labels
chore A small task

Comments

@tombruijn
Copy link
Member

tombruijn commented Mar 23, 2022

This prints a lot more warning about things I should maybe look at.

// src/main.rs
#![warn(clippy::pedantic)]

Note that clippy::pedantic contains some very aggressive lints prone to false positives.
https://github.com/rust-lang/rust-clippy

See also https://rust-lang.github.io/rust-clippy/master/ for a list of rules (search by pedantic).

@tombruijn tombruijn added the chore A small task label Mar 23, 2022
@tombruijn
Copy link
Member Author

Also look at #![warn(clippy::cargo)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A small task
Projects
None yet
Development

No branches or pull requests

1 participant