-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sanity checks are performed on includes and excludes in precious.toml #42
Comments
I'm not sure that The config appears to be using file glob patterns. |
I believe |
I started working on this today but I realized that I don't think we should always lint all excludes. Consider a case like a Rust project, where I'll always exclude the I suspect this applies to other non-global excludes as well. I do think it'd make sense to validate that the |
One option for excludes would be to optionally warn when they don't match anything, but it definitely shouldn't be an error. And you probably wouldn't want this sort of warning running in CI, since it'd be very likely to be a false positive. But it might be handy for manually reviewing your config from time to time. |
To address the same concern as the external tool https://github.com/oalders/ppath/.
When using the git version control system, this can be achieved reasonably fast with a combination of calls to
git ls-files
andgit check-ignore
, as illustrated by a prototype implementation I wrote (https://houseabsolute.slack.com/archives/C2M2EM0LX/p1670442201584039 if you're on this slack - ask for an invite if you're curious).We want:
The text was updated successfully, but these errors were encountered: