aws-ia / terraform-aws-codebuild
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
  • 33% duplication:
    • 407 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 137 duplicated lines
  • 4 duplicates
system33% (137 lines)
Duplication per Extension
tf28% (103 lines)
yml79% (34 lines)
Duplication per Component (primary)
ROOT29% (52 lines)
deploy42% (51 lines)
deploy/buildspecs77% (17 lines)
buildspecs80% (17 lines)
setup_workspace0% (0 lines)

Duplication Between Components (50+ lines)

G deploy deploy ROOT ROOT deploy--ROOT 103

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
30 x 2 deploy
ROOT
variable.tf
variable.tf
1:37 (43%)
1:30 (44%)
view
17 x 2 buildspecs
deploy/buildspecs
terraform_env.yml
terraform_env.yml
6:22 (80%)
7:23 (77%)
view
16 x 2 deploy
ROOT
variable.tf
variable.tf
45:66 (23%)
37:55 (23%)
view
6 x 2 deploy
ROOT
variable.tf
variable.tf
66:75 (8%)
61:68 (8%)
view