Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

DuplicatedBlocksBySonarCube

Antonin Abherve edited this page Nov 23, 2017 · 1 revision

Overview

Number of duplicated blocks of lines.

For a block of code to be considered as duplicated:

Non-Java projects:
    There should be at least 100 successive and duplicated tokens.
    Those tokens should be spread at least on:
        30 lines of code for COBOL
        20 lines of code for ABAP
        10 lines of code for other languages

Java projects:
    There should be at least 10 successive and duplicated statements whatever the number of tokens and lines.

Differences in indentation as well as in string literals are ignored while detecting duplications.

MeasureDiagram

Measure Architecture

Measure Type DirectMeasure

Scope : SonarCube

Value Type Default Description
ServerURL string
Login STRING
Password PASSWORD
ProjectKey string

Data Model : Numeric

Value Type Description
value double

Algorithmes

This metric is a proxy for the SonarCube 4.5 tool

Clone this wiki locally