aws-ia / terraform-aws-vpc
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
  • 13% duplication:
    • 844 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 114 duplicated lines
  • 17 duplicates
system13% (114 lines)
Duplication per Extension
tf13% (114 lines)
Duplication per Component (primary)
ROOT14% (99 lines)
deploy13% (15 lines)
setup_workspace0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
15 x 2 deploy
ROOT
variables.tf
variables.tf
29:46 (20%)
33:50 (7%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
159:170 (6%)
174:185 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
129:140 (6%)
174:185 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
99:110 (6%)
114:125 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
144:155 (6%)
159:170 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
99:110 (6%)
129:140 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
144:155 (6%)
174:185 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
114:125 (6%)
159:170 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
114:125 (6%)
174:185 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
99:110 (6%)
159:170 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
114:125 (6%)
144:155 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
99:110 (6%)
174:185 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
129:140 (6%)
144:155 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
99:110 (6%)
144:155 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
114:125 (6%)
129:140 (6%)
view
12 x 2 ROOT
ROOT
variables.tf
variables.tf
129:140 (6%)
159:170 (6%)
view
6 x 2 ROOT
ROOT
main.tf
main.tf
324:330 (2%)
335:341 (2%)
view