-
Notifications
You must be signed in to change notification settings - Fork 81
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
XmlGraph issue #553
Comments
@yegor256 what do you think? |
@starkda this is done for a reason. I don't remember, what is the reason, but we should find out. It doesn't look like a bug to me, but as a feature. just removing it -- is not a solution. |
After some investigation, I found out that project already has xsl templates to get rid of constructors/static methods. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XmlGraph
(https://github.com/cqfn/jpeek/blob/master/src/main/java/org/jpeek/graph/XmlGraph.java) is used to represent methods and their relations for each class from input skeleton. But current implementation ignores constructors and static methods:https://github.com/cqfn/jpeek/blob/9f4fc55048c2af466d5f81ca01a6f36f41537fa9/src/main/java/org/jpeek/graph/XmlGraph.java#L97C13-L99C14
Therefore, resulting graph may be incorrect for cases when we want to include constructors or static methods in metric calculation.
For example, we want to include constructor and input class is:
the code that finds nodes of graph:
Size of
nodes
would be 3, while it should be 4.The text was updated successfully, but these errors were encountered: