VSCode: Force clippy to be pedantic as Default

I work under Linux with VSCode (codium) and have activated clippy under Setting.

Now I would like to set clippy to pedantic.

How can I do this without having to change the instruction in the source code every time to:

#![warn(clippy::pedantic)]

I have really tried everything, but all hints or instructions from the internet never work for me.

I would really appreciate help with detailed instructions.

Not sure if this gives you exactly what you want, but you can add this to your Cargo.toml:

[lints.clippy]
pedantic = "warn"
1 Like

Great. Thank you!

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.