-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Make sources:
respect a new .taskignore
file, similar to .gitignore
#1753
Comments
Respecting Alternative, we could introduce a |
This would be fine as it could be a symlink to
For this one i think its value should be gitignore-like file to parse, maybe For the record, in the meantime my workaround is using json:
desc: Lint JSON files
sources:
- ./**/*.json
cmds:
- fd --hidden --extension json | xargs --no-run-if-empty jq empty
- fd --hidden --extension json | xargs --no-run-if-empty prettier --check --parser json |
I don't have much time right now to give this a try, but this lib could probably be used to help for gitignore parsing: https://pkg.go.dev/github.com/go-git/go-git/v5/plumbing/format/gitignore |
Hey! |
sources:
respect a new .taskignore
file, similar to .gitignore
I'm using this task to lint JSON files:
And it would be nice if
sources
could respect the.gitignore
content instead of having to exclude all ignored patterns.This is especially needed as i'm using this task from a Remote Taskfiles #1317 and cannot easily edit it.
The text was updated successfully, but these errors were encountered: