Question connected to Cyclomatic complexity calculation formula

19 views
Skip to first unread message

郭雨龙

unread,
Nov 8, 2024, 7:13:04 AM11/8/24
to JaCoCo and EclEmma Users

The metric of cyclomatic complexity is a bit difficult to understand for me, so I looked for relevant information, especially the official description of jacoco. In the information I noticed that jcoco expects to calculate the cyclomatic complexity using the following formula:temp_image_20241029133452.png

But after I looked through the relevant code, I found that the actual implementation was not completely consistent with the description. The code actually ended with +1. Is there something I overlooked here? Or does the document need some modifications?temp_img_20241029133657.pngnt 

Reply all
Reply to author
Forward
0 new messages