-
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
cargo clippy
does not process build scripts
#2802
Comments
I'm currently working on |
@flip1995 I noticed this issue has no tags. Does that mean it is not prioritized? |
lopopolo
added a commit
to artichoke/artichoke
that referenced
this issue
Aug 20, 2019
Clippy does not lint build scripts See rust-lang/rust-clippy#2802
No. Not all issues fit cleanly in the labeled buckets. This in particular is something that would require #3837 to be finished |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cargo clippy
doesn't do any extra handling of build scripts beyond whatcargo check
does. For example, this code will trigger anunknown_lints
warning when usingcargo clippy
:Built-in lints still work; adding a
#![forbid(missing_docs)]
to the above snippet fails the build as expected. clippy-as-a-plugin also works:I'm not actually sure whether clippy or cargo is at fault here, but since the plugin interface is about to go I figured it might be more prudent to report here first.
The text was updated successfully, but these errors were encountered: