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

🦜 Add Duplicate Detector #6

Open
3 tasks
William-McGonagle opened this issue Jan 1, 2022 · 0 comments
Open
3 tasks

🦜 Add Duplicate Detector #6

William-McGonagle opened this issue Jan 1, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@William-McGonagle
Copy link
Member

Idea

I just learned that duplicate lines are a problem in large codebases. So, we should make a system that detects duplicate chunks of code. This duplicate detector should not fire off if there are a few similar lines, but it should be triggered when an entire function is duplicated, or giant chunks of code are duplicated a bunch.

This detector can either be built using plaintext or by using the abstract syntax tree generated by the babel parser. I think that the system would be much more powerful if we build it using the babel parser.

https://linearb.io/blog/code-duplication/

Todo

  • Build a system to detect important code chunks using the babel parser
  • Store the important code chunks
  • Check in the code where the important chunks of code are repeated
@William-McGonagle William-McGonagle added enhancement New feature or request help wanted Extra attention is needed labels Jan 1, 2022
@William-McGonagle William-McGonagle moved this to Todo in EAF Linter Jan 1, 2022
@William-McGonagle William-McGonagle added the good first issue Good for newcomers label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
No open projects
Status: Todo
Development

No branches or pull requests

1 participant