Duplicate finder complexity

How is the complexity calculated within the duplicate finder build runner?

2 comments

Hi,

The simple answer - the more this number, the bigger duplicate is.

More complex answer - for each duplicate we calculate the number of duplicating expressions, statements etc. which are present in duplicate code block and sum them with different weights.
To detect duplicates in Java code TeamCity uses IntelliJ IDEA's duplicates finding mechanism.

Regards,
KIR

0

Ok. Thanks for the clarification.

0

Please sign in to leave a comment.