aws-samples / aws-codebuild-polyglot-application
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
  • 13% duplication:
    • 914 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 119 duplicated lines
  • 12 duplicates
system13% (119 lines)
Duplication per Extension
yaml17% (119 lines)
Duplication per Component (primary)
ROOT16% (119 lines)
website0% (0 lines)
microservices-greeting0% (0 lines)
microservices-name/src/lib0% (0 lines)
microservices-name/src0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
359:370 (2%)
376:387 (2%)
view
12 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
359:370 (2%)
393:404 (2%)
view
12 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
376:387 (2%)
393:404 (2%)
view
9 x 2 ROOT
ROOT
greeting-sam.yaml
name-sam.yaml
45:53 (13%)
90:98 (8%)
view
7 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
198:204 (1%)
268:274 (1%)
view
7 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
26:32 (1%)
219:225 (1%)
view
7 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
26:32 (1%)
76:82 (1%)
view
7 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
76:82 (1%)
219:225 (1%)
view
6 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
34:39 (1%)
84:89 (1%)
view
6 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
41:46 (1%)
91:96 (1%)
view
6 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
91:96 (1%)
234:239 (1%)
view
6 x 2 ROOT
ROOT
polyglot-app-pipeline.yaml
polyglot-app-pipeline.yaml
41:46 (1%)
234:239 (1%)
view