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
If I rename my config file and run npx jscpd --ignore "**/node_modules/**/*,**/.next/**/*", then it behaves as expected
Similarly, npx jscpd --pattern "./reactCommon/**/*" --ignore "**/node_modules/**/*,**/.next/**/*" triggers the problem
Expected behavior
the ./reactCommon/.next folder should be ignored
Actual behavior
I get a lot of dupe warnings for lines in the ./reactCommon/.next folder
Screenshots
Desktop (please complete the following information):
OS: WSL2 Ubuntu
OS Version: Ubuntu 22.04.2 LTS
NodeJS Version: v18.16.1
jscpd version: 3.5.9
Additional context
Note that the same behavior seems to occur no matter how I format the ignore line (i.e. use a full relative path, omit ** or *, etc) or whether I use a string or array of strings
The text was updated successfully, but these errors were encountered:
Describe the bug
If
pattern
is specified and has overlap withignore
, thenignore
doesn't work properly.To Reproduce
Config file:
Then run
npx jspcd
If I rename my config file and run
npx jscpd --ignore "**/node_modules/**/*,**/.next/**/*"
, then it behaves as expectedSimilarly,
npx jscpd --pattern "./reactCommon/**/*" --ignore "**/node_modules/**/*,**/.next/**/*"
triggers the problemExpected behavior
the
./reactCommon/.next
folder should be ignoredActual behavior
I get a lot of dupe warnings for lines in the
./reactCommon/.next
folderScreenshots
Desktop (please complete the following information):
Additional context
Note that the same behavior seems to occur no matter how I format the ignore line (i.e. use a full relative path, omit ** or *, etc) or whether I use a string or array of strings
The text was updated successfully, but these errors were encountered: