aws-samples / nexus-oss-on-aws
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
  • 12% duplication:
    • 1,217 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 158 duplicated lines
  • 6 duplicates
system12% (158 lines)
Duplication per Extension
py35% (90 lines)
ts7% (68 lines)
Duplication per Component (primary)
src/lib7% (68 lines)
src/lambda.d/nexus3-purge36% (45 lines)
src/lambda.d/nexuspreconfigure28% (45 lines)
src0% (0 lines)
src/lambda.d/nexuspreconfigure-integration-test0% (0 lines)
src/lambda.d0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G src/lambda.d/nexus3-purge src/lambda.d/nexus3-purge src/lambda.d/nexuspreconfigure src/lambda.d/nexuspreconfigure src/lambda.d/nexus3-purge--src/lambda.d/nexuspreconfigure 90

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
29 x 2 src/lambda.d/nexus3-purge
src/lambda.d/nexuspreconfigure
index.py
index.py
84:119 (23%)
52:87 (44%)
view
16 x 2 src/lambda.d/nexus3-purge
src/lambda.d/nexuspreconfigure
index.py
index.py
22:44 (13%)
14:36 (24%)
view
12 x 2 src/lib
src/lib
sonatype-nexus3-stack.ts
sonatype-nexus3-stack.ts
975:986 (1%)
998:1009 (1%)
view
8 x 2 src/lib
src/lib
sonatype-nexus3-stack.ts
sonatype-nexus3-stack.ts
563:570 (<1%)
594:601 (<1%)
view
8 x 2 src/lib
src/lib
sonatype-nexus3-stack.ts
sonatype-nexus3-stack.ts
965:972 (<1%)
988:995 (<1%)
view
6 x 2 src/lib
src/lib
sonatype-nexus3-stack.ts
sonatype-nexus3-stack.ts
305:311 (<1%)
858:864 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
27 x 2 src/lambda.d/nexus3-purge
src/lambda.d/nexuspreconfigure
index.py
index.py
0:0 
0:0 
view