forward3d/rbhive

View on GitHub
lib/thrift/t_c_l_i_service_types.rb

Summary

Maintainability
F
1 wk
Test Coverage

File t_c_l_i_service_types.rb has 1349 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'thrift'

module Hive2
  module Thrift
    module TProtocolVersion
Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb - About 3 days to fix

    Method validate has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field orientation is unset!') unless @orientation
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field maxRows is unset!') unless @maxRows
            unless @orientation.nil? || ::Hive2::Thrift::TFetchOrientation::VALID_VALUES.include?(@orientation)
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method validate has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationId is unset!') unless @operationId
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationType is unset!') unless @operationType
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hasResultSet is unset!') if @hasResultSet.nil?
            unless @operationType.nil? || ::Hive2::Thrift::TOperationType::VALID_VALUES.include?(@operationType)
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb - About 45 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method validate has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serverProtocolVersion is unset!') unless @serverProtocolVersion
            unless @serverProtocolVersion.nil? || ::Hive2::Thrift::TProtocolVersion::VALID_VALUES.include?(@serverProtocolVersion)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field serverProtocolVersion!')
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb - About 35 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method validate has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field infoType is unset!') unless @infoType
            unless @infoType.nil? || ::Hive2::Thrift::TGetInfoType::VALID_VALUES.include?(@infoType)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field infoType!')
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb - About 35 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method validate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field owner is unset!') unless @owner
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field renewer is unset!') unless @renewer
          end
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb - About 25 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method validate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field columnName is unset!') unless @columnName
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typeDesc is unset!') unless @typeDesc
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field position is unset!') unless @position
          end
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb - About 25 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

        class TI16Column
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 604..621
    lib/thrift/t_c_l_i_service_types.rb on lines 624..641
    lib/thrift/t_c_l_i_service_types.rb on lines 664..681
    lib/thrift/t_c_l_i_service_types.rb on lines 684..701
    lib/thrift/t_c_l_i_service_types.rb on lines 704..721
    lib/thrift/t_c_l_i_service_types.rb on lines 724..741

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

    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 7 locations. Consider refactoring.
    Open

        class TBoolColumn
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 624..641
    lib/thrift/t_c_l_i_service_types.rb on lines 644..661
    lib/thrift/t_c_l_i_service_types.rb on lines 664..681
    lib/thrift/t_c_l_i_service_types.rb on lines 684..701
    lib/thrift/t_c_l_i_service_types.rb on lines 704..721
    lib/thrift/t_c_l_i_service_types.rb on lines 724..741

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

    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 7 locations. Consider refactoring.
    Open

        class TI32Column
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 604..621
    lib/thrift/t_c_l_i_service_types.rb on lines 624..641
    lib/thrift/t_c_l_i_service_types.rb on lines 644..661
    lib/thrift/t_c_l_i_service_types.rb on lines 684..701
    lib/thrift/t_c_l_i_service_types.rb on lines 704..721
    lib/thrift/t_c_l_i_service_types.rb on lines 724..741

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

    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 7 locations. Consider refactoring.
    Open

        class TByteColumn
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 604..621
    lib/thrift/t_c_l_i_service_types.rb on lines 644..661
    lib/thrift/t_c_l_i_service_types.rb on lines 664..681
    lib/thrift/t_c_l_i_service_types.rb on lines 684..701
    lib/thrift/t_c_l_i_service_types.rb on lines 704..721
    lib/thrift/t_c_l_i_service_types.rb on lines 724..741

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

    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 7 locations. Consider refactoring.
    Open

        class TI64Column
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 604..621
    lib/thrift/t_c_l_i_service_types.rb on lines 624..641
    lib/thrift/t_c_l_i_service_types.rb on lines 644..661
    lib/thrift/t_c_l_i_service_types.rb on lines 664..681
    lib/thrift/t_c_l_i_service_types.rb on lines 704..721
    lib/thrift/t_c_l_i_service_types.rb on lines 724..741

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

    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 7 locations. Consider refactoring.
    Open

        class TDoubleColumn
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 604..621
    lib/thrift/t_c_l_i_service_types.rb on lines 624..641
    lib/thrift/t_c_l_i_service_types.rb on lines 644..661
    lib/thrift/t_c_l_i_service_types.rb on lines 664..681
    lib/thrift/t_c_l_i_service_types.rb on lines 684..701
    lib/thrift/t_c_l_i_service_types.rb on lines 724..741

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

    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 7 locations. Consider refactoring.
    Open

        class TStringColumn
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUES = 1
          NULLS = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 604..621
    lib/thrift/t_c_l_i_service_types.rb on lines 624..641
    lib/thrift/t_c_l_i_service_types.rb on lines 644..661
    lib/thrift/t_c_l_i_service_types.rb on lines 664..681
    lib/thrift/t_c_l_i_service_types.rb on lines 684..701
    lib/thrift/t_c_l_i_service_types.rb on lines 704..721

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

    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

        class TRenewDelegationTokenReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONHANDLE = 1
          DELEGATIONTOKEN = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1687..1704

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

    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

        class TCancelDelegationTokenReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONHANDLE = 1
          DELEGATIONTOKEN = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1724..1741

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

    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 TGetTablesResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TGetColumnsResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TExecuteStatementResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TGetTypeInfoResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TGetCatalogsResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TGetTableTypesResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TGetResultSetMetadataResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          SCHEMA = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446

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

    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 TGetSchemasResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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 TGetFunctionsResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
          OPERATIONHANDLE = 2
    
    
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
    lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
    lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
    lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
    lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
    lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
    lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
    lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

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

    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

        class TStructTypeEntry
          include ::Thrift::Struct, ::Thrift::Struct_Union
          NAMETOTYPEPTR = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 270..284

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

    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

        class TUnionTypeEntry
          include ::Thrift::Struct, ::Thrift::Struct_Union
          NAMETOTYPEPTR = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 253..267

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

    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

        class TTypeDesc
          include ::Thrift::Struct, ::Thrift::Struct_Union
          TYPES = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 2 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 399..413
    lib/thrift/t_c_l_i_service_types.rb on lines 587..601

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

    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

        class TTableSchema
          include ::Thrift::Struct, ::Thrift::Struct_Union
          COLUMNS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 2 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 357..371
    lib/thrift/t_c_l_i_service_types.rb on lines 587..601

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

    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

        class TRow
          include ::Thrift::Struct, ::Thrift::Struct_Union
          COLVALS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 2 other locations - About 1 hr to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 357..371
    lib/thrift/t_c_l_i_service_types.rb on lines 399..413

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

    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 14 locations. Consider refactoring.
    Open

        class TCloseOperationReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          OPERATIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TCancelDelegationTokenResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TSessionHandle
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONID = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TGetResultSetMetadataReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          OPERATIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TCloseSessionResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TGetOperationStatusReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          OPERATIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TRenewDelegationTokenResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721

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

    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 14 locations. Consider refactoring.
    Open

        class TGetTypeInfoReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TCancelOperationResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TCloseSessionReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TGetTableTypesReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TGetCatalogsReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SESSIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TCloseOperationResp
          include ::Thrift::Struct, ::Thrift::Struct_Union
          STATUS = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1494..1508
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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 14 locations. Consider refactoring.
    Open

        class TCancelOperationReq
          include ::Thrift::Struct, ::Thrift::Struct_Union
          OPERATIONHANDLE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 13 other locations - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 899..913
    lib/thrift/t_c_l_i_service_types.rb on lines 997..1011
    lib/thrift/t_c_l_i_service_types.rb on lines 1014..1028
    lib/thrift/t_c_l_i_service_types.rb on lines 1170..1184
    lib/thrift/t_c_l_i_service_types.rb on lines 1206..1220
    lib/thrift/t_c_l_i_service_types.rb on lines 1326..1340
    lib/thrift/t_c_l_i_service_types.rb on lines 1449..1463
    lib/thrift/t_c_l_i_service_types.rb on lines 1511..1525
    lib/thrift/t_c_l_i_service_types.rb on lines 1528..1542
    lib/thrift/t_c_l_i_service_types.rb on lines 1545..1559
    lib/thrift/t_c_l_i_service_types.rb on lines 1562..1576
    lib/thrift/t_c_l_i_service_types.rb on lines 1707..1721
    lib/thrift/t_c_l_i_service_types.rb on lines 1744..1758

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

    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

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field infoType is unset!') unless @infoType
            unless @infoType.nil? || ::Hive2::Thrift::TGetInfoType::VALID_VALUES.include?(@infoType)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field infoType!')
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 986..991

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

    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

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serverProtocolVersion is unset!') unless @serverProtocolVersion
            unless @serverProtocolVersion.nil? || ::Hive2::Thrift::TProtocolVersion::VALID_VALUES.include?(@serverProtocolVersion)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field serverProtocolVersion!')
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 45 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1096..1101

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

    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 TFetchOrientation
          FETCH_NEXT = 0
          FETCH_PRIOR = 1
          FETCH_RELATIVE = 2
          FETCH_ABSOLUTE = 3
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 40 mins to fix
    lib/thrift/fb303_types.rb on lines 9..17

    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

          class << self
            def stringValue(val)
              TGetInfoValue.new(:stringValue, val)
            end
    
    
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 40 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 306..328

    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

          class << self
            def primitiveEntry(val)
              TTypeEntry.new(:primitiveEntry, val)
            end
    
    
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 40 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1033..1055

    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

        class TUserDefinedTypeEntry
          include ::Thrift::Struct, ::Thrift::Struct_Union
          TYPECLASSNAME = 1
    
          FIELDS = {
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 40 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 216..230

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

    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

        class TArrayTypeEntry
          include ::Thrift::Struct, ::Thrift::Struct_Union
          OBJECTTYPEPTR = 1
    
          FIELDS = {
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 40 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 287..301

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

    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 TStatusCode
          SUCCESS_STATUS = 0
          SUCCESS_WITH_INFO_STATUS = 1
          STILL_EXECUTING_STATUS = 2
          ERROR_STATUS = 3
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 30 mins to fix
    lib/thrift/hive_metastore_types.rb on lines 11..18

    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 2 locations. Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field owner is unset!') unless @owner
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field renewer is unset!') unless @renewer
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 30 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 390..393

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

    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

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field columnName is unset!') unless @columnName
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typeDesc is unset!') unless @typeDesc
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field position is unset!') unless @position
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 1 other location - About 30 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 1659..1662

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

    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 7 locations. Consider refactoring.
    Open

        class TI64Value
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 416..429
    lib/thrift/t_c_l_i_service_types.rb on lines 432..445
    lib/thrift/t_c_l_i_service_types.rb on lines 448..461
    lib/thrift/t_c_l_i_service_types.rb on lines 464..477
    lib/thrift/t_c_l_i_service_types.rb on lines 496..509
    lib/thrift/t_c_l_i_service_types.rb on lines 512..525

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

    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 4 locations. Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
            unless @operationState.nil? || ::Hive2::Thrift::TOperationState::VALID_VALUES.include?(@operationState)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationState!')
            end
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 3 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 206..210
    lib/thrift/t_c_l_i_service_types.rb on lines 869..873
    lib/thrift/t_c_l_i_service_types.rb on lines 960..964

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

    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 7 locations. Consider refactoring.
    Open

        class TI16Value
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 416..429
    lib/thrift/t_c_l_i_service_types.rb on lines 432..445
    lib/thrift/t_c_l_i_service_types.rb on lines 464..477
    lib/thrift/t_c_l_i_service_types.rb on lines 480..493
    lib/thrift/t_c_l_i_service_types.rb on lines 496..509
    lib/thrift/t_c_l_i_service_types.rb on lines 512..525

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

    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 7 locations. Consider refactoring.
    Open

        class TDoubleValue
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 416..429
    lib/thrift/t_c_l_i_service_types.rb on lines 432..445
    lib/thrift/t_c_l_i_service_types.rb on lines 448..461
    lib/thrift/t_c_l_i_service_types.rb on lines 464..477
    lib/thrift/t_c_l_i_service_types.rb on lines 480..493
    lib/thrift/t_c_l_i_service_types.rb on lines 512..525

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

    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 4 locations. Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
            unless @type.nil? || ::Hive2::Thrift::TTypeId::VALID_VALUES.include?(@type)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
            end
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 3 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 869..873
    lib/thrift/t_c_l_i_service_types.rb on lines 960..964
    lib/thrift/t_c_l_i_service_types.rb on lines 1484..1488

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

    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 7 locations. Consider refactoring.
    Open

        class TI32Value
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 416..429
    lib/thrift/t_c_l_i_service_types.rb on lines 432..445
    lib/thrift/t_c_l_i_service_types.rb on lines 448..461
    lib/thrift/t_c_l_i_service_types.rb on lines 480..493
    lib/thrift/t_c_l_i_service_types.rb on lines 496..509
    lib/thrift/t_c_l_i_service_types.rb on lines 512..525

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

    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 4 locations. Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field client_protocol is unset!') unless @client_protocol
            unless @client_protocol.nil? || ::Hive2::Thrift::TProtocolVersion::VALID_VALUES.include?(@client_protocol)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field client_protocol!')
            end
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 3 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 206..210
    lib/thrift/t_c_l_i_service_types.rb on lines 869..873
    lib/thrift/t_c_l_i_service_types.rb on lines 1484..1488

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

    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 7 locations. Consider refactoring.
    Open

        class TBoolValue
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 432..445
    lib/thrift/t_c_l_i_service_types.rb on lines 448..461
    lib/thrift/t_c_l_i_service_types.rb on lines 464..477
    lib/thrift/t_c_l_i_service_types.rb on lines 480..493
    lib/thrift/t_c_l_i_service_types.rb on lines 496..509
    lib/thrift/t_c_l_i_service_types.rb on lines 512..525

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

    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 4 locations. Consider refactoring.
    Open

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statusCode is unset!') unless @statusCode
            unless @statusCode.nil? || ::Hive2::Thrift::TStatusCode::VALID_VALUES.include?(@statusCode)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusCode!')
            end
    Severity: Minor
    Found in lib/thrift/t_c_l_i_service_types.rb and 3 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 206..210
    lib/thrift/t_c_l_i_service_types.rb on lines 960..964
    lib/thrift/t_c_l_i_service_types.rb on lines 1484..1488

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

    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 7 locations. Consider refactoring.
    Open

        class TStringValue
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 416..429
    lib/thrift/t_c_l_i_service_types.rb on lines 432..445
    lib/thrift/t_c_l_i_service_types.rb on lines 448..461
    lib/thrift/t_c_l_i_service_types.rb on lines 464..477
    lib/thrift/t_c_l_i_service_types.rb on lines 480..493
    lib/thrift/t_c_l_i_service_types.rb on lines 496..509

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

    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 7 locations. Consider refactoring.
    Open

        class TByteValue
          include ::Thrift::Struct, ::Thrift::Struct_Union
          VALUE = 1
    
          FIELDS = {
    Severity: Major
    Found in lib/thrift/t_c_l_i_service_types.rb and 6 other locations - About 25 mins to fix
    lib/thrift/t_c_l_i_service_types.rb on lines 416..429
    lib/thrift/t_c_l_i_service_types.rb on lines 448..461
    lib/thrift/t_c_l_i_service_types.rb on lines 464..477
    lib/thrift/t_c_l_i_service_types.rb on lines 480..493
    lib/thrift/t_c_l_i_service_types.rb on lines 496..509
    lib/thrift/t_c_l_i_service_types.rb on lines 512..525

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

    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