kubernetes / contributor-site
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
  • 31% duplication:
    • 464 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 147 duplicated lines
  • 16 duplicates
system31% (147 lines)
Duplication per Extension
html65% (147 lines)
Duplication per Component (primary)
layouts/community92% (38 lines)
layouts/events92% (38 lines)
layouts/resources92% (38 lines)
layouts/calendar59% (26 lines)
layouts/_default46% (7 lines)
ROOT0% (0 lines)
assets/scss0% (0 lines)
layouts/partials0% (0 lines)
layouts/shortcodes0% (0 lines)

Duplication Between Components (50+ lines)

G layouts/community layouts/community layouts/resources layouts/resources layouts/community--layouts/resources 76 layouts/events layouts/events layouts/community--layouts/events 76 layouts/events--layouts/resources 76 layouts/calendar layouts/calendar layouts/calendar--layouts/community 52 layouts/calendar--layouts/resources 52 layouts/calendar--layouts/events 52

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
20 x 2 layouts/community
layouts/resources
baseof.html
baseof.html
1:28 (100%)
1:28 (100%)
view
20 x 2 layouts/events
layouts/resources
baseof.html
baseof.html
1:28 (100%)
1:28 (100%)
view
20 x 2 layouts/community
layouts/events
baseof.html
baseof.html
1:28 (100%)
1:28 (100%)
view
18 x 2 layouts/community
layouts/events
list.html
list.html
1:19 (100%)
1:19 (100%)
view
18 x 2 layouts/community
layouts/resources
list.html
list.html
1:19 (100%)
1:19 (100%)
view
18 x 2 layouts/events
layouts/resources
list.html
list.html
1:19 (100%)
1:19 (100%)
view
18 x 2 layouts/calendar
layouts/resources
list.html
list.html
1:19 (100%)
1:19 (100%)
view
18 x 2 layouts/calendar
layouts/community
list.html
list.html
1:19 (100%)
1:19 (100%)
view
18 x 2 layouts/calendar
layouts/events
list.html
list.html
1:19 (100%)
1:19 (100%)
view
8 x 2 layouts/calendar
layouts/community
baseof.html
baseof.html
12:20 (34%)
6:14 (40%)
view
8 x 2 layouts/calendar
layouts/resources
baseof.html
baseof.html
12:20 (34%)
6:14 (40%)
view
8 x 2 layouts/calendar
layouts/events
baseof.html
baseof.html
12:20 (34%)
6:14 (40%)
view
7 x 2 layouts/_default
layouts/community
content.html
list.html
1:7 (46%)
2:8 (38%)
view
7 x 2 layouts/_default
layouts/calendar
content.html
list.html
1:7 (46%)
2:8 (38%)
view
7 x 2 layouts/_default
layouts/resources
content.html
list.html
1:7 (46%)
2:8 (38%)
view
7 x 2 layouts/_default
layouts/events
content.html
list.html
1:7 (46%)
2:8 (38%)
view