aws / aws-sdk-rails
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
  • 9% duplication:
    • 1,930 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 176 duplicated lines
  • 7 duplicates
system9% (176 lines)
Duplication per Extension
html87% (144 lines)
rb1% (25 lines)
erb3% (7 lines)
Duplication per Component (primary)
sample_app/public87% (144 lines)
lib/aws2% (12 lines)
lib/generators1% (7 lines)
sample_app/db7% (7 lines)
lib/active_job8% (6 lines)
lib/tasks0% (0 lines)
lib/action_dispatch0% (0 lines)
lib0% (0 lines)
doc-src/templates0% (0 lines)
ROOT0% (0 lines)
sample_app0% (0 lines)
sample_app/config0% (0 lines)
sample_app/app0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
48 x 2 sample_app/public
sample_app/public
422.html
500.html
5:60 (87%)
5:60 (88%)
view
48 x 2 sample_app/public
sample_app/public
404.html
422.html
5:60 (87%)
5:60 (87%)
view
48 x 2 sample_app/public
sample_app/public
404.html
500.html
5:60 (87%)
5:60 (88%)
view
7 x 2 lib/generators/dynamo_db...ore_migration/templates
sample_app/db/migrate
session_store_migration.erb
20201211003109_create_dynamo_db_sessi...
2:9 (87%)
2:9 (87%)
view
6 x 2 lib/active_job/queue_adapters
lib/aws/rails/sqs_active_job
amazon_sqs_async_adapter.rb
executor.rb
33:38 (26%)
53:58 (12%)
view
6 x 2 lib/aws/rails
lib/aws/rails/sqs_active_job
notifications.rb
executor.rb
28:33 (31%)
53:58 (12%)
view
6 x 2 lib/active_job/queue_adapters
lib/aws/rails
amazon_sqs_async_adapter.rb
notifications.rb
33:38 (26%)
28:33 (31%)
view