feenkcom / jdt2famix

Jdt2Famix takes Java sources and produces MSE files that can be imported into Glamorous Toolkit.
https://gtoolkit.com
Eclipse Public License 1.0
37 stars 22 forks source link

Computing the Cyclomatic Complexity metric. #48

Closed rbonifacio closed 6 years ago

rbonifacio commented 6 years ago

The current available implementation of jdt2famix does not calculate the metric cyclomatic complexity. In this patch we fix this issue, implementing the algorithm detailed in "Empirical analysis of the relationship between CC and SLOC in a large corpus of Java methods and C functions". D Landman, A Serebrenik, E Bouwers, JJ Vinju. Journal of Software: Evolution and Process 28 (7), 589-618

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 51.927% when pulling f194aded626d77c5e7c6d6ef7467bb4bac2d9fde on refactoring-towards-language-evolution:cyclomatic-complexity into 5e1e2be40f4f0510b9832f6b2663e156a800c732 on feenkcom:master.

girba commented 6 years ago

Thanks. The solution is nice, but I would prefer it to happen in the main visitor. Can you modify the code?

rbonifacio commented 6 years ago

Moved the implementation to the main visitor.