-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add new include_file_outside_project
lint
#13638
base: master
Are you sure you want to change the base?
Add new include_file_outside_project
lint
#13638
Conversation
4bbdba4
to
a404546
Compare
It seems like the error is kinda legit. The file is indeed outside of the (lintcheck) project. Anyway, let's first see if you anyone has an idea on how to add a ui test for this lint. |
Suggestion: Make this lint check |
It would be good if this lint respected the But also, I'm a bit confused as to why the lint thinks that all packages include Is the problem with ui tests that the cargo manifest dir is set to rust-clippy and there would be no file to use in the test? We have |
Looking a bit more into it, seems like |
☔ The latest upstream changes (presumably #13376) made this pull request unmergeable. Please resolve the merge conflicts. |
Good idea!
True. However, if this is pushed on a (git) repository, I suppose the problem is the same. But I think it can be done as a follow-up. For now, let's only warn on
Thanks, gonna add a check for that. |
a404546
to
61eb990
Compare
61eb990
to
a7a2b12
Compare
So there is one issue with this lint: how to actually test it.
I wrote a test locally to check it works:
main.rs
:/home/me/bar.rs
:/home/me/foo.rs
:Which outputs when I run
cargo dev lint main.rs
:changelog: Add new
include_file_outside_project
lint