aws-ia / taskcat
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
  • 3% duplication:
    • 6,197 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 214 duplicated lines
  • 16 duplicates
system3% (214 lines)
Duplication per Extension
py2% (161 lines)
jinja15% (53 lines)
Duplication per Component (primary)
taskcat2% (72 lines)
taskcat/project_templates15% (53 lines)
taskcat/_cli_modules7% (39 lines)
ROOT14% (34 lines)
taskcat/_cfn1% (16 lines)
taskcat_plugin_testhook0% (0 lines)
assets/css0% (0 lines)
taskcat/iam_policy0% (0 lines)
taskcat/cfg0% (0 lines)
taskcat/testing0% (0 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
17 x 2 ROOT
ROOT
generate_config_docs.py
generate_config_docs.py
24:40 (23%)
55:71 (23%)
view
15 x 2 taskcat/project_templates/quickstart/ci
taskcat/project_templates/quickstart/ci
taskcat-autobucket-json.yml.jinja
taskcat.yml.jinja
1:15 (100%)
1:15 (100%)
view
11 x 2 taskcat/project_templates/quickstart/ci
taskcat/project_templates/quickstart/ci
taskcat-autobucket.yml.jinja
taskcat.yml.jinja
2:12 (57%)
2:12 (73%)
view
11 x 2 taskcat/project_templates/quickstart/ci
taskcat/project_templates/quickstart/ci
taskcat-autobucket-json.yml.jinja
taskcat-autobucket.yml.jinja
2:12 (73%)
2:12 (57%)
view
11 x 2 taskcat
taskcat
_config.py
_config.py
310:320 (2%)
357:367 (2%)
view
8 x 2 taskcat/_cli_modules
taskcat/_cli_modules
list.py
list.py
52:59 (8%)
61:68 (8%)
view
8 x 2 taskcat
taskcat
_config.py
_config.py
286:293 (2%)
324:333 (2%)
view
8 x 2 taskcat/_cli_modules
taskcat/_cli_modules
delete.py
deploy.py
107:114 (9%)
141:148 (7%)
view
8 x 2 taskcat
taskcat
_dataclasses.py
_dataclasses.py
513:522 (1%)
555:565 (1%)
view
8 x 2 taskcat/_cfn
taskcat/_cfn
stack_url_helper.py
stack_url_helper.py
376:385 (3%)
392:400 (3%)
view
7 x 2 taskcat/_cli_modules
taskcat/_cli_modules
list.py
list.py
62:68 (7%)
70:76 (7%)
view
7 x 2 taskcat/_cli_modules
taskcat/_cli_modules
list.py
list.py
53:59 (7%)
70:76 (7%)
view
6 x 2 taskcat
taskcat
_dataclasses.py
_dataclasses.py
556:561 (<1%)
619:624 (<1%)
view
6 x 2 taskcat/project_templates/quickstart/ci
taskcat/project_templates/quickstart/ci
debug-input.json.jinja
debug-input.json.jinja
13:18 (14%)
25:30 (14%)
view
6 x 2 taskcat
taskcat
_dataclasses.py
_dataclasses.py
538:543 (<1%)
590:595 (<1%)
view
6 x 2 taskcat
taskcat
_dataclasses.py
_dataclasses.py
514:519 (<1%)
619:624 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 taskcat/_cli_modules
taskcat/_cli_modules
deploy.py
delete.py
0:0 
0:0 
view