aws-samples / aws-lambda-efs-samples
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
  • 43% duplication:
    • 419 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 184 duplicated lines
  • 14 duplicates
system43% (184 lines)
Duplication per Extension
yaml65% (184 lines)
Duplication per Component (primary)
4-zip73% (51 lines)
3-largefiles70% (50 lines)
5-unzip65% (48 lines)
2-lambda-template52% (35 lines)
5-unzip/unzipFiles0% (0 lines)
3-largefiles/processFile0% (0 lines)
2-lambda-template/hello-world0% (0 lines)
1-setup0% (0 lines)
4-zip/zipFiles0% (0 lines)

Duplication Between Components (50+ lines)

G 3-largefiles 3-largefiles 4-zip 4-zip 3-largefiles--4-zip 100 5-unzip 5-unzip 3-largefiles--5-unzip 94 4-zip--5-unzip 96 2-lambda-template 2-lambda-template 2-lambda-template--3-largefiles 70 2-lambda-template--4-zip 70 2-lambda-template--5-unzip 70

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
37 x 2 4-zip
5-unzip
template.yaml
template.yaml
34:74 (53%)
38:78 (50%)
view
30 x 2 3-largefiles
5-unzip
template.yaml
template.yaml
43:76 (42%)
45:78 (41%)
view
30 x 2 3-largefiles
4-zip
template.yaml
template.yaml
43:76 (42%)
41:74 (43%)
view
28 x 2 2-lambda-template
3-largefiles
template.yaml
template.yaml
33:61 (41%)
43:71 (39%)
view
28 x 2 2-lambda-template
5-unzip
template.yaml
template.yaml
33:61 (41%)
45:73 (38%)
view
28 x 2 2-lambda-template
4-zip
template.yaml
template.yaml
33:61 (41%)
41:69 (40%)
view
14 x 2 3-largefiles
4-zip
template.yaml
template.yaml
9:23 (19%)
9:23 (20%)
view
11 x 2 4-zip
5-unzip
template.yaml
template.yaml
12:23 (15%)
15:26 (15%)
view
11 x 2 3-largefiles
5-unzip
template.yaml
template.yaml
12:23 (15%)
15:26 (15%)
view
7 x 2 2-lambda-template
3-largefiles
template.yaml
template.yaml
6:12 (10%)
12:18 (9%)
view
7 x 2 2-lambda-template
5-unzip
template.yaml
template.yaml
6:12 (10%)
15:21 (9%)
view
7 x 2 2-lambda-template
4-zip
template.yaml
template.yaml
6:12 (10%)
12:18 (10%)
view
6 x 2 3-largefiles
5-unzip
template.yaml
template.yaml
36:41 (8%)
38:43 (8%)
view
6 x 2 3-largefiles
4-zip
template.yaml
template.yaml
36:41 (8%)
34:39 (8%)
view