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

Find similarities within files #7439

Closed
dgutson opened this issue Sep 9, 2022 · 2 comments
Closed

Find similarities within files #7439

dgutson opened this issue Sep 9, 2022 · 2 comments
Labels
Duplicate 🐫 Duplicate of an already existing issue

Comments

@dgutson
Copy link

dgutson commented Sep 9, 2022

Current problem

I'm trying to find code clones within a single file, but symilar needs at least two files. Comparing twice the same file brings 100% of duplication, as expected.

Desired solution

I want to be able to provide a single file in the arguments, meaning that symilar should find similarities within that file.

Tag @qequ .

Additional context

No response

@dgutson dgutson added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Sep 9, 2022
@dgutson
Copy link
Author

dgutson commented Sep 9, 2022

Maybe this could be also a command line flag --scan-self and yet provide a list of file names, meaning that similarity scanning will also occur within each provided file

@dgutson dgutson changed the title Run symilar on a single file Find similarities within files Sep 9, 2022
@mbyrnepr2
Copy link
Member

Thanks for the report. It looks like a duplicate of #1457

@Pierre-Sassoulas Pierre-Sassoulas added Duplicate 🐫 Duplicate of an already existing issue and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Sep 9, 2022
@Pierre-Sassoulas Pierre-Sassoulas closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🐫 Duplicate of an already existing issue
Projects
None yet
Development

No branches or pull requests

3 participants