Cloning Violations

This section lists all the findings that are reported by Squore cloning detection tool.

CC (R_NOCC)

Avoid code duplication.

  • Similar artefacts (transitive closure) are part of the same violation

  • Use artefacts with textual cloning (CC > 0) when grouping

Scope: files and all children artefacts.

CFTC (R_NOCFTC)

Avoid algorithmic cloning.

  • Similar artefacts (transitive closure) are part of the same violation

  • Use artefacts with algorithmic cloning (CFTC > 0) when grouping

Scope: artefacts with a CFT, like functions.

CAC (R_NOCAC)

Consider refactorisation.

  • Similar artefacts (transitive closure) are part of the same violation

  • Use "refactorable" artefacts (CAC > 0) when grouping

Scope: files and all children artefacts.

RS (R_NORS)

Consider refactorisation.

  • One violation per "refactorable" artefact (RS > 0)

Scope: files and all children artefacts.

CFTRS (R_NOCFTRS)

Consider algorithmic refactorisation.

  • One violation per "refactorable" artefact (CFTRS > 0)

Scope: artefacts with a CFT, like functions.