You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the git version control system, this can be achieved reasonably fast with a combination of calls to git ls-files and git 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:
there to exist a new command to check a precious config file for the issues ppath is trying to address
the new command to exit with a non-zero status when any issues are found
these checks to be performed by default on every tidy/lint run
any violation of the checks to be merely a warning
the checks to be fast
it's OK to be VCS-specific and to not initially support all VCSs that precious aims to support
The text was updated successfully, but these errors were encountered:
I'm not sure that git ls-files can easily be used to check the include/exclude patterns in the config.
The config appears to be using file glob patterns. git ls-files would be using gitignore matching patterns. There is some overlap here, but there are some significant differences as well.
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: