forward3d/rbhive

View on GitHub
lib/thrift/hive_metastore_types.rb

Summary

Maintainability
D
2 days
Test Coverage

File hive_metastore_types.rb has 481 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'thrift'
require_relative 'fb303_types'


module HiveObjectType
Severity: Minor
Found in lib/thrift/hive_metastore_types.rb - About 7 hrs to fix

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

    class FieldSchema
      include ::Thrift::Struct, ::Thrift::Struct_Union
      NAME = 1
      TYPE = 2
      COMMENT = 3
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 5 other locations - About 1 hr to fix
    lib/thrift/hive_metastore_types.rb on lines 204..221
    lib/thrift/thrift_hive_metastore.rb on lines 2155..2172
    lib/thrift/thrift_hive_metastore.rb on lines 2419..2436
    lib/thrift/thrift_hive_metastore.rb on lines 2629..2646
    lib/thrift/thrift_hive_metastore.rb on lines 3223..3240

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 48.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

    class Role
      include ::Thrift::Struct, ::Thrift::Struct_Union
      ROLENAME = 1
      CREATETIME = 2
      OWNERNAME = 3
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 5 other locations - About 1 hr to fix
    lib/thrift/hive_metastore_types.rb on lines 47..64
    lib/thrift/thrift_hive_metastore.rb on lines 2155..2172
    lib/thrift/thrift_hive_metastore.rb on lines 2419..2436
    lib/thrift/thrift_hive_metastore.rb on lines 2629..2646
    lib/thrift/thrift_hive_metastore.rb on lines 3223..3240

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 48.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class UnknownTableException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class InvalidObjectException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class ConfigValSecurityException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class NoSuchObjectException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class UnknownDBException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class AlreadyExistsException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    class Order
      include ::Thrift::Struct, ::Thrift::Struct_Union
      COL = 1
      ORDER = 2
    
    
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 9 other locations - About 40 mins to fix
    lib/thrift/facebook_service.rb on lines 480..495
    lib/thrift/hive_metastore_types.rb on lines 29..44
    lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
    lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
    lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
    lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
    lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
    lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
    lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class MetaException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class InvalidOperationException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 568..586
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    class IndexAlreadyExistsException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 8 other locations - About 40 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 442..460
    lib/thrift/hive_metastore_types.rb on lines 463..481
    lib/thrift/hive_metastore_types.rb on lines 484..502
    lib/thrift/hive_metastore_types.rb on lines 505..523
    lib/thrift/hive_metastore_types.rb on lines 526..544
    lib/thrift/hive_metastore_types.rb on lines 547..565
    lib/thrift/hive_metastore_types.rb on lines 589..607
    lib/thrift/hive_metastore_types.rb on lines 610..628

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    class Version
      include ::Thrift::Struct, ::Thrift::Struct_Union
      VERSION = 1
      COMMENTS = 2
    
    
    Severity: Major
    Found in lib/thrift/hive_metastore_types.rb and 9 other locations - About 40 mins to fix
    lib/thrift/facebook_service.rb on lines 480..495
    lib/thrift/hive_metastore_types.rb on lines 268..283
    lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
    lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
    lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
    lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
    lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
    lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
    lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 38.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    module HiveObjectType
      GLOBAL = 1
      DATABASE = 2
      TABLE = 3
      PARTITION = 4
    Severity: Minor
    Found in lib/thrift/hive_metastore_types.rb and 1 other location - About 30 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 48..55

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        USERPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'userPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}},
    Severity: Minor
    Found in lib/thrift/hive_metastore_types.rb and 2 other locations - About 20 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 192..192
    lib/thrift/hive_metastore_types.rb on lines 193..193

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 27.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        GROUPPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'groupPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}},
    Severity: Minor
    Found in lib/thrift/hive_metastore_types.rb and 2 other locations - About 20 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 191..191
    lib/thrift/hive_metastore_types.rb on lines 193..193

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 27.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        ROLEPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'rolePrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}}
    Severity: Minor
    Found in lib/thrift/hive_metastore_types.rb and 2 other locations - About 20 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 191..191
    lib/thrift/hive_metastore_types.rb on lines 192..192

    Duplicated Code

    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).

    Tuning

    This issue has a mass of 27.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status