jscpd icon indicating copy to clipboard operation
jscpd copied to clipboard

Comparing specific file in whole repo

Open Sudharshan45 opened this issue 1 year ago • 1 comments

Hi kucherenko, I need feature like i don't want to run duplicate code check for whole repo. Instead i just want to run duplicate code check for single specific file example: i have index.html i want to check whether any of the files in repo contains or includes the same content(duplicate code check) Like comparing only index.html file to whole repo directory files

Reason for feature i don't want to run check everytime for all files in repo. i just want run check for duplicate code in modifying files.

input camparing files and repo directory

output Any file containing duplicate code in index.html

if the above feature doesn't exist. Can i start work on to it?

Sudharshan45 avatar May 11 '23 12:05 Sudharshan45

In general, jscpd scan all files every time in case of using a memory store, I think you can try to use persist stores like leveldb or redis and run jscpd just for changed file

kucherenko avatar May 23 '23 08:05 kucherenko