aws-samples / cdk-fargate-gitlab-runner
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
  • 15% duplication:
    • 489 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 76 duplicated lines
  • 3 duplicates
system15% (76 lines)
Duplication per Extension
py10% (40 lines)
toml40% (36 lines)
Duplication per Component (primary)
gitlab_ci_fargate_runner/docker_fargate_driver41% (36 lines)
task_definitions20% (20 lines)
gitlab_ci_fargate_runner8% (20 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
18 x 2 gitlab_ci_fargate_runner/docker_fargate_driver
gitlab_ci_fargate_runner/docker_fargate_driver
config_driver_template.toml
config_runner_template.toml
1:19 (50%)
1:19 (35%)
view
11 x 2 gitlab_ci_fargate_runner
task_definitions
gitlab_ci_fargate_runner_stack.py
task_definition_stack.py
200:210 (4%)
95:105 (11%)
view
9 x 2 gitlab_ci_fargate_runner
task_definitions
gitlab_ci_fargate_runner_stack.py
task_definition_stack.py
76:84 (4%)
38:46 (9%)
view