microsoft / service-fabric-cli
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 4% duplication:
    • 2,405 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 7 duplicates
system4% (100 lines)
Duplication per Extension
py4% (100 lines)
Duplication per Component (primary)
src/sfctl4% (100 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
src0% (0 lines)
src/checkers0% (0 lines)
src/sfctl/helps0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/sfctl
src/sfctl
custom_service.py
custom_service.py
448:458 (4%)
472:482 (4%)
view
8 x 2 src/sfctl
src/sfctl
custom_container.py
custom_container.py
33:40 (14%)
61:68 (14%)
view
7 x 2 src/sfctl
src/sfctl
params.py
params.py
179:185 (4%)
198:204 (4%)
view
6 x 2 src/sfctl
src/sfctl
custom_container.py
custom_container.py
14:19 (10%)
45:50 (10%)
view
6 x 2 src/sfctl
src/sfctl
custom_service.py
custom_service.py
616:621 (2%)
633:638 (2%)
view
6 x 2 src/sfctl
src/sfctl
custom_app.py
custom_app.py
166:173 (1%)
237:244 (1%)
view
6 x 2 src/sfctl
src/sfctl
custom_service.py
custom_service.py
484:489 (2%)
624:629 (2%)
view