-
Notifications
You must be signed in to change notification settings - Fork 35
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
Elect a renaming handler to check new references #124
Comments
@jvcoutinho we have to first discuss how precise is the reference check. and how far it requires the project to be compilable? buildable? |
@pauloborba currently, it just checks at the same class level. This means new references to public methods in other classes aren't detected. |
@jvcoutinho does the current (class scoped reference check) implementation require the class to be syntactic valid? compilable? @guilhermejccavalcanti given this class scope restriction, would you expect much difference from this reference check (in relation to the other handlers that do no checking) |
Yes. We compile the class in order to catch the references. |
I don't think so, at least from the observations of the NewElementReferencingEditedOne handler, there are very few occurrences. I can't tell about the cases of renaming. But the main limitation of the compilation scope is the fact that on real use (as a git merge driver), the tool has only access to the merged file, not the entire project. |
Currently, only one of the four renaming handlers check if a developer added a new reference to an edited method, and only under certain conditions. Although, another handler, NewElementReferencingEditedOne, checks if a developer added a new element that refers to an edited one, but again, under certain conditions.
So, as solution, we could do the following:
The text was updated successfully, but these errors were encountered: