aws / homebrew-tap
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
  • 31% duplication:
    • 501 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 159 duplicated lines
  • 12 duplicates
system31% (159 lines)
Duplication per Extension
rb25% (107 lines)
yml64% (52 lines)
Duplication per Component (primary)
Formula28% (107 lines)
ROOT64% (52 lines)
ConfigProvider0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
22 x 2 Formula
Formula
ec2-instance-selector.rb
ec2-metadata-mock.rb
10:34 (73%)
10:34 (73%)
view
20 x 2 ROOT
ROOT
appveyor-sam-cli-nightly.yml
appveyor.yml
8:36 (74%)
8:36 (74%)
view
15 x 2 Formula
Formula
aws-sam-cli-beta-cdk.rb
aws-sam-cli-nightly.rb
14:32 (55%)
14:32 (55%)
view
13 x 2 Formula
Formula
aws-simple-ec2-cli.rb
ec2-metadata-mock.rb
15:29 (52%)
20:34 (43%)
view
13 x 2 Formula
Formula
aws-simple-ec2-cli.rb
ec2-instance-selector.rb
15:29 (52%)
20:34 (43%)
view
7 x 2 Formula
Formula
aws-sam-cli-rc.rb
aws-sam-cli.rb
28:35 (25%)
28:35 (25%)
view
6 x 2 ROOT
ROOT
appveyor-sam-cli-beta-cdk.yml
appveyor-sam-cli-nightly.yml
23:29 (22%)
23:29 (22%)
view
6 x 2 ROOT
ROOT
appveyor-sam-cli-beta-cdk.yml
appveyor-sam-cli-nightly.yml
13:20 (22%)
13:20 (22%)
view
6 x 2 ROOT
ROOT
appveyor-sam-cli-beta-cdk.yml
appveyor.yml
23:29 (22%)
23:29 (22%)
view
6 x 2 Formula
Formula
aws-sam-cli-beta-cdk.rb
aws-sam-cli.rb
14:20 (22%)
14:20 (22%)
view
6 x 2 Formula
Formula
aws-sam-cli-nightly.rb
aws-sam-cli.rb
14:20 (22%)
14:20 (22%)
view
6 x 2 ROOT
ROOT
appveyor-sam-cli-beta-cdk.yml
appveyor.yml
13:20 (22%)
13:20 (22%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 Formula
Formula
aws-sam-cli-beta-cdk.rb
aws-sam-cli-nightly.rb
21:30 
21:30 
view