-
Notifications
You must be signed in to change notification settings - Fork 23
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
Expand examples_do_not_have_gitignore
test
#1417
Comments
examples_do_not_have_gitignore
examples_do_not_have_gitignore
examples_do_not_have_gitignore
examples_do_not_have_gitignore
test
Hi, can I work on this issue? @smoelius |
@0x471 Yes, please do! |
I just clarified the issue description a little bit. I think the changes are small. Hopefully, you agree. |
Thank you for the details, feel free to check the PR! it seems the test is currently failing because there’s a rust-toolchain file in the general examples folder. According to the issue description, this file shouldn’t be there. How do you suggest proceeding with this? |
That's okay, actually. In fact, my reason for wanting to expand the test is to ensure that no file in a subdirectory overrides those. I'm not sure the easiest/best way to suggest allowing exceptions for the roots of the general, supplementary, and restriction subdirectories. Can I leave it to you to decide? P.S. I just tweaked the description again. Sorry for being imprecise. |
I modified the test accordingly, added a new array for root directories with exceptions: f49cf23 |
To
examples_do_not_contain_forbidden_paths
or something similar:dylint/examples/src/lib.rs
Line 101 in dad4f73
The test should continue check that the following is not in any example subdirectory:
The test should additionally check that the following are not in any non-root subdirectory of the general, supplementary, or restriction subdirectories:
However, the test should allow those files to exist in the experimental and testing subdirectories, e.g., like here:
The text was updated successfully, but these errors were encountered: