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

Ideas for tracking upstream references #1

Open
CodesAway opened this issue Nov 9, 2020 · 1 comment
Open

Ideas for tracking upstream references #1

CodesAway opened this issue Nov 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@CodesAway
Copy link
Owner

Will be used to detect unused code (no upstream references) and upstream call hierarchy

  • When index code, add an upstream reference to any invoked methods (regardless if inside or outside of method)
  • When delete code documents, such as when reindexing file, also delete any upstream references to the deleted documents / code (will need to have something can search on, like method signature
  • Then, when readd, can create document mentioning the upstream

Basically, at the same time I create a downstream reference, I'd also create an upstream reference to the current method / field / class

This way, can incrementally build upstream references.

How to easily identify methods / fields / classes with no upstream references (unused code)?

  • Goal is that if I'm in a method, I want it to tell me the code isn't used
  • That way, I'm not modifying unused code
@CodesAway CodesAway added the enhancement New feature or request label Nov 9, 2020
@CodesAway
Copy link
Owner Author

The idea is that downstream and upstream references both would be indexed based on the upstream document. This way, they'll be reindexed just like currently done when the upstream file changes.

  • First, existing stuff will be deleted
  • Then, file will be reindexed, including upstream and downstream references

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

No branches or pull requests

1 participant