aws-samples / ac-contactflowapi
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
  • 9% duplication:
    • 1,768 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 172 duplicated lines
  • 14 duplicates
system9% (172 lines)
Duplication per Extension
css21% (72 lines)
js6% (56 lines)
yaml12% (32 lines)
html3% (12 lines)
Duplication per Component (primary)
website-creator/css21% (72 lines)
website-creator/js8% (56 lines)
ROOT12% (32 lines)
website-creator2% (12 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
16 x 2 website-creator/css
website-creator/css
style.css
style.css
151:166 (4%)
176:191 (4%)
view
11 x 2 website-creator/css
website-creator/css
style.css
style.css
246:256 (3%)
277:287 (3%)
view
9 x 2 website-creator/css
website-creator/css
style.css
style.css
331:339 (2%)
360:368 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
226:232 (2%)
238:244 (2%)
view
7 x 2 website-creator/js
website-creator/js
connectflows.js
connectflows.js
298:305 (1%)
313:320 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
238:243 (2%)
249:254 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
81:86 (2%)
99:104 (2%)
view
6 x 2 website-creator/js
website-creator/js
connectflows.js
connectflows.js
686:691 (<1%)
714:719 (<1%)
view
6 x 2 website-creator/js
website-creator/js
connectflows.js
connectflows.js
574:580 (<1%)
755:760 (<1%)
view
6 x 2 website-creator/js
website-creator/js
connectflows.js
connectflows.js
640:645 (<1%)
659:664 (<1%)
view
6 x 2 website-creator/js
website-creator/js
connectflows.js
connectflows.js
592:597 (<1%)
714:719 (<1%)
view
6 x 2 website-creator/js
website-creator/js
connectflows.js
connectflows.js
592:597 (<1%)
686:691 (<1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
226:231 (2%)
249:254 (2%)
view
6 x 2 website-creator
website-creator
contactflowapi.html
contactflowapi.html
42:47 (1%)
49:54 (1%)
view