You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is easy to reproduce using the codebase of the current snapshot, so I don't attach any code or screenshot.
I believe it is a bug, since the toggle for variables and field metrics should not affect the results for class-level metrics.
Will make PRs if I can fix it.
The text was updated successfully, but these errors were encountered:
I wrote a test but surprisingly TCC and LCC were always 0,-1,or NaN, even if I simulate user's input (programmatically calling directly Runner.main). This is not correct but still slightly different from the case in the description. To clarify I run tests on the hibernate-orm project.
However, if I add breakpoints and debug from IDE and execute from Runner using customized arguments, things went different.
For example, in setResult method of TightClassCohesion.java, if variablesAndFields is set as True, the directConnections and indirectConnections sets are correctly populated. If variablesAndFields is false, the 2 sets are empty, and thus the result of the TCC is 0.
I will try to reproduce it using more test cases. Please let me know if I got something wrong.
This issue is easy to reproduce using the codebase of the current snapshot, so I don't attach any code or screenshot.
I believe it is a bug, since the toggle for variables and field metrics should not affect the results for class-level metrics.
Will make PRs if I can fix it.
The text was updated successfully, but these errors were encountered: