-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
allman style brace formatting triggers suspicious_else_formatting #3864
Comments
Example: fn main() {
if true
{
println!("Hi");
}
else
{
println!("Bye");
}
} |
I just switched to this style and now all my else-statements are being triggered. Is there at least a way to tell clippy to silence this warning for the whole project? I can't find what to put inside .clippy.toml to silence this, if any such thing exists. |
clippy.toml doesn't and won't support allowing/denying lints. You can do this in the |
UI Tests: Separate suspicious_else_formatting tests Was briefly looking into #3864 when I saw that the tests could benefit from being in their own file. --- changelog: none
I prefer to put linting in the Cargo.toml file, in the |
.
The text was updated successfully, but these errors were encountered: