Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparing specific file in whole repo #588

Open
Sudharshan45 opened this issue May 11, 2023 · 1 comment
Open

Comparing specific file in whole repo #588

Sudharshan45 opened this issue May 11, 2023 · 1 comment

Comments

@Sudharshan45
Copy link

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?

@kucherenko
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants