aws-quickstart / quickstart-tableau-server-healthcare
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
  • 49% duplication:
    • 4,814 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,392 duplicated lines
  • 324 duplicates
system49% (2,392 lines)
Duplication per Extension
yaml52% (2,202 lines)
py31% (172 lines)
yml37% (18 lines)
Duplication per Component (primary)
templates52% (2,202 lines)
scripts41% (172 lines)
ci37% (18 lines)
functions/source/ACMCert0% (0 lines)

Duplication Between Components (50+ lines)

G scripts scripts templates templates scripts--templates 244

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 324 duplicates...
Size#FoldersFilesLinesCode
111 x 2 templates
templates
tableau-server-centos-amazonlinux.yaml
tableau-server-ubuntu.yaml
13:123 (40%)
5:115 (41%)
view
77 x 2 templates
templates
tableau-server-master.yaml
tableau-server.yaml
209:285 (19%)
205:281 (12%)
view
76 x 2 templates
templates
clean-bucket.yaml
copy-lambdas.yaml
19:95 (78%)
170:246 (27%)
view
58 x 2 templates
templates
tableau-server-ubuntu.yaml
tableau-server-windows.yaml
4:61 (21%)
4:61 (13%)
view
57 x 2 templates
templates
tableau-server-centos-amazonlinux.yaml
tableau-server-windows.yaml
13:69 (20%)
5:61 (12%)
view
46 x 2 templates
templates
tableau-server-master.yaml
tableau-server.yaml
97:142 (11%)
83:128 (7%)
view
34 x 2 templates
templates
tableau-server-master.yaml
tableau-server.yaml
49:82 (8%)
33:66 (5%)
view
30 x 2 templates
templates
tableau-server-master.yaml
tableau-server.yaml
174:203 (7%)
160:189 (4%)
view
29 x 2 templates
templates
encrypted-elb.yaml
logging.yaml
16:44 (39%)
15:43 (11%)
view
27 x 2 templates
templates
tableau-server-ubuntu.yaml
tableau-server-windows.yaml
120:148 (10%)
215:243 (6%)
view
27 x 2 templates
templates
tableau-server-centos-amazonlinux.yaml
tableau-server-ubuntu.yaml
163:189 (9%)
153:179 (10%)
view
26 x 2 templates
templates
tableau-server-centos-amazonlinux.yaml
tableau-server-ubuntu.yaml
132:158 (9%)
123:149 (9%)
view
26 x 2 scripts
templates
elb_is_secure.py
config-rules.yaml
18:44 (47%)
211:236 (7%)
view
26 x 2 templates
templates
copy-lambdas.yaml
copy-lambdas.yaml
66:94 (9%)
196:222 (9%)
view
26 x 2 templates
templates
clean-bucket.yaml
copy-lambdas.yaml
45:71 (26%)
66:94 (9%)
view
25 x 2 templates
templates
logging.yaml
tableau-server.yaml
15:39 (9%)
200:224 (4%)
view
25 x 2 templates
templates
encrypted-elb.yaml
tableau-server.yaml
16:40 (34%)
200:224 (4%)
view
25 x 2 templates
templates
tableau-server-centos-amazonlinux.yaml
tableau-server-windows.yaml
132:157 (9%)
218:243 (5%)
view
23 x 2 templates
templates
tableau-server-centos-amazonlinux.yaml
tableau-server-ubuntu.yaml
191:213 (8%)
181:203 (8%)
view
23 x 2 templates
templates
tableau-server-master.yaml
tableau-server.yaml
147:169 (5%)
134:156 (3%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
16 x 2 scripts
scripts
config_enabled.py
confirm_log_bucket_archival.py
0:0 
0:0 
view
16 x 2 scripts
scripts
s3_log_bucket.py
cloudtrail_log_bucket.py
0:0 
0:0 
view