Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Ignore clippy warnings in generated code #16

Open
Pzixel opened this issue May 15, 2020 · 2 comments
Open

Ignore clippy warnings in generated code #16

Pzixel opened this issue May 15, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Pzixel
Copy link

Pzixel commented May 15, 2020

I think it worth adding

#![allow(clippy::all, clippy::restriction, clippy::pedantic, clippy::nursery, clippy::cargo)]

to the existing #![allow(dead_code, unused_imports)] disabled warnings.

@WaffleLapkin
Copy link

Everyclippy::restriction, clippy::pedantic, clippy::nursery and clippy::cargo is allow by default, so there is no need to allow them explicitly.

And #![allow(clippy::all)] will suppress all clippy warnings, doesn't it?

@Pzixel
Copy link
Author

Pzixel commented May 15, 2020

But if I have warn on the crate level I still don't want to get warnings from generated code. This is exactly my case. I have some [warn]/[deny] in main.rs and I get warnings that I cannot fix because you are not allowed to manually edit generated files: all changes will be lost anyway in the next regeneration.

doesn't it?

I'm not sure, because I've copied it from somewhere on the urlo, and they write all these categories explicitely.

@sergeysova sergeysova added the enhancement New feature or request label Nov 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants