jscpd
jscpd copied to clipboard
Comparing specific file in whole repo
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?
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