-
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
Clippy is linting stuff from ./target too? #14073
Comments
The problem was already reported to the uniffi: mozilla/uniffi-rs#2346 , but I think clippy should just not lint things there? Feel free to close, just making sure this has been considered. |
Note that Clippy lints this file because it has been included verbatim in the project, e.g., via an `include_str!() macro call. It doesn't actively look for files, and lints what rustc tells it to lint. |
Right. Makes sense. So I guess the question still is - should clippy just ignore stuff from target as autogenerated. Possibly not, I guess some projects might be generating their own code and would like it linted too? |
Yes. Isn't it what you're doing with |
OK. I guess. |
Summary
I'm upgrading the toolchain to 1.84.0 and after fixing all the new lints in our own project I'm getting lint problems from file out-generated by unitffi inside target directory:
I'll figure out a way to bandaid it, but I'm surprised that clippy even bothers looking there. I hope it's not scanning that dir or something - seems like a waste of time. And most of all - I can't really fix lints in code that comes from another project.
Reproducer
NA
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: