aws-samples / aws-serverless-connect-wallboard
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
  • 11% duplication:
    • 1,052 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 118 duplicated lines
  • 9 duplicates
system11% (118 lines)
Duplication per Extension
yaml31% (88 lines)
py4% (30 lines)
Duplication per Component (primary)
ROOT11% (118 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
58:76 (6%)
90:108 (6%)
view
12 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
58:69 (4%)
123:134 (4%)
view
12 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
90:101 (4%)
123:134 (4%)
view
10 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
103:112 (3%)
136:145 (3%)
view
8 x 2 ROOT
ROOT
get-historical-metrics.py
render-wallboard.py
168:177 (6%)
263:272 (2%)
view
7 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
78:84 (2%)
111:117 (2%)
view
7 x 2 ROOT
ROOT
get-historical-metrics.py
render-wallboard.py
196:205 (5%)
475:484 (2%)
view
6 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
71:76 (2%)
136:141 (2%)
view
6 x 2 ROOT
ROOT
wallboard-cfn.yaml
wallboard-cfn.yaml
286:291 (2%)
311:316 (2%)
view