Chapter 6. Cloning Detection

Table of Contents

Cloning Metrics
CC - Code Cloned
CFTC - Control Flow Token (CFT) Cloned
CAC - Children Artefact Cloned
CN - Clones Number
RS - Repeated Substrings (Repeated Code Blocks)
CFTRS - Repeated Substrings in Control Flow Token
ICC - Inner Code Cloned
ICFTC - Inner Control Flow Token Cloned
Cloning Violations
CC (R_NOCC)
CFTC (R_NOCFTC)
CAC (R_NOCAC)
RS (R_NORS)
CFTRS (R_NOCFTRS)

This chapter lists the various metrics collected in Squore when running the cloning detection tool, as well as the violations presented in the Findings tab of the web interface.

Note that the concepts used for cloning detection in Squore are based on the notions of longest common subsequence problem (http://en.wikipedia.org/wiki/Longest_common_subsequence_problem) and longest repeated substring problem (http://en.wikipedia.org/wiki/Longest_repeated_substring_problem).