SergXIIIth/vxod

View on GitHub

Complex class definition

require 'omniauth'


module Vxod
  class Middleware < Sinatra::Base
Found in Vxod::Middleware - About 1 day to fix

    Similar code found in 1 other location

    require 'omniauth'
    
    
    module Vxod
      class Middleware < Sinatra::Base
    Found in Vxod::Middleware and 1 other location - About 3 hrs to fix
    lib/vxod/middleware.rb on lines 53..57

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Refactorings

    Further Reading

    Similar code found in 1 other location

    require 'omniauth'
    
    
    module Vxod
      class Middleware < Sinatra::Base
    Found in Vxod::Middleware and 1 other location - About 3 hrs to fix
    lib/vxod/middleware.rb on lines 47..51

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Refactorings

    Further Reading

    Similar code found in 1 other location

    require 'omniauth'
    
    
    module Vxod
      class Middleware < Sinatra::Base
    Found in Vxod::Middleware and 1 other location - About 2 hrs to fix
    lib/vxod/middleware.rb on lines 19..22

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Refactorings

    Further Reading

    Similar code found in 1 other location

    require 'omniauth'
    
    
    module Vxod
      class Middleware < Sinatra::Base
    Found in Vxod::Middleware and 1 other location - About 2 hrs to fix
    lib/vxod/middleware.rb on lines 35..38

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Refactorings

    Further Reading

    Complex class definition

    require 'mongoid'
    
    module Vxod::Db::Mongoid
      class User
        include ::Mongoid::Document
    Found in Vxod::Db::Mongoid::User - About 2 hrs to fix