aws-quickstart / quickstart-trend-micro-cloudone-helm-resource-provider
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
  • 26% duplication:
    • 546 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 142 duplicated lines
  • 4 duplicates
system26% (142 lines)
Duplication per Extension
yaml35% (142 lines)
Duplication per Component (primary)
ROOT33% (142 lines)
vpc0% (0 lines)
cmd/resource0% (0 lines)
cmd0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
46 x 2 ROOT
ROOT
contract_test_exports.template.yaml
exports.yaml
140:188 (20%)
3:51 (63%)
view
10 x 2 ROOT
ROOT
execution-role.template.yaml
resource-role.yaml
2:11 (20%)
6:15 (17%)
view
9 x 2 ROOT
ROOT
execution-role.template.yaml
resource-role.yaml
15:23 (18%)
17:25 (16%)
view
6 x 2 ROOT
ROOT
contract_test_exports.template.yaml
contract_test_exports.template.yaml
35:40 (2%)
75:80 (2%)
view