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
Also, it seems like .gitignore patterns like /.git/** and detectClones's ignore pattern like .git/** are not working. .gitignores.git/** and detectClones's ignore pattern **/.git/** is working though.
Seems to be because fast-glob is being called with a pattern like /Users/maxpatiiuk/site/python/specify7/**/*
That causes it to interpret every relative path ignore pattern to be relative to /, rather than process.cwd()
Solutions:
jscpd should either provide the cwd option to fast-glob instead of putting cwd into the "pattern"
OR, jscpd should prepend every relative path with options.path
This line has no impact as it's result is not assigned back to any variable:
jscpd/apps/jscpd/src/init/ignore.ts
Line 15 in d9584f2
Perharps it should be
return ignore.map((pattern) => pattern.replace('!', ''));
instead?The text was updated successfully, but these errors were encountered: