GerritCodeReview / git-repo
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
  • 2% duplication:
    • 10,368 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 230 duplicated lines
  • 16 duplicates
system2% (230 lines)
Duplication per Extension
py2% (230 lines)
Duplication per Component (primary)
ROOT1% (130 lines)
subcmds2% (74 lines)
release16% (26 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
10 x 2 ROOT
ROOT
project.py
project.py
194:203 (<1%)
960:969 (<1%)
view
9 x 2 ROOT
ROOT
project.py
project.py
1306:1314 (<1%)
1332:1340 (<1%)
view
9 x 2 subcmds
subcmds
info.py
overview.py
39:48 (5%)
37:46 (16%)
view
8 x 2 subcmds
subcmds
overview.py
prune.py
71:80 (15%)
58:67 (17%)
view
8 x 2 ROOT
ROOT
project.py
project.py
3080:3087 (<1%)
3124:3131 (<1%)
view
7 x 2 ROOT
ROOT
main.py
main.py
454:460 (1%)
479:485 (1%)
view
7 x 2 ROOT
ROOT
error.py
error.py
96:103 (12%)
110:117 (12%)
view
7 x 2 subcmds
subcmds
selfupdate.py
sync.py
38:44 (26%)
264:270 (<1%)
view
7 x 2 subcmds
subcmds
diff.py
status.py
52:59 (24%)
119:126 (8%)
view
7 x 2 release
release
sign-launcher.py
sign-tag.py
90:96 (11%)
95:101 (10%)
view
6 x 2 ROOT
ROOT
main.py
main.py
445:451 (1%)
470:476 (1%)
view
6 x 2 ROOT
ROOT
project.py
project.py
2131:2136 (<1%)
2303:2308 (<1%)
view
6 x 2 ROOT
ROOT
git_superproject.py
git_superproject.py
178:183 (2%)
205:210 (2%)
view
6 x 2 release
release
sign-launcher.py
sign-tag.py
102:111 (10%)
110:119 (9%)
view
6 x 2 ROOT
ROOT
platform_utils_win32.py
platform_utils_win32.py
98:104 (4%)
112:118 (4%)
view
6 x 2 subcmds
subcmds
overview.py
prune.py
58:64 (11%)
48:54 (13%)
view