forward3d/rbhive

View on GitHub
lib/thrift/t_c_l_i_service.rb

Summary

Maintainability
F
5 days
Test Coverage

File t_c_l_i_service.rb has 774 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'thrift'
require_relative 't_c_l_i_service_types'

module Hive2
  module Thrift
Severity: Major
Found in lib/thrift/t_c_l_i_service.rb - About 1 day to fix

    Class Client has 57 methods (exceeds 20 allowed). Consider refactoring.
    Open

          class Client
            include ::Thrift::Client
    
            def OpenSession(req)
              send_OpenSession(req)
    Severity: Major
    Found in lib/thrift/t_c_l_i_service.rb - About 1 day to fix

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

            class OpenSession_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetColumns_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetFunctions_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetOperationStatus_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetDelegationToken_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class RenewDelegationToken_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetOperationStatus_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetCatalogs_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetDelegationToken_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetTables_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetCatalogs_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CloseOperation_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class ExecuteStatement_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetTypeInfo_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetTableTypes_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CancelOperation_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetTables_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class ExecuteStatement_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetTableTypes_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CloseSession_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetTypeInfo_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetInfo_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetSchemas_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CloseOperation_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CloseSession_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetResultSetMetadata_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class OpenSession_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetColumns_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetResultSetMetadata_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CancelDelegationToken_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CancelDelegationToken_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetSchemas_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class CancelOperation_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class FetchResults_result
              include ::Thrift::Struct, ::Thrift::Struct_Union
              SUCCESS = 0
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetFunctions_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class FetchResults_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class RenewDelegationToken_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 507..520
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

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

            class GetInfo_args
              include ::Thrift::Struct, ::Thrift::Struct_Union
              REQ = 1
      
              FIELDS = {
      Severity: Major
      Found in lib/thrift/t_c_l_i_service.rb and 38 other locations - About 30 mins to fix
      lib/thrift/t_c_l_i_service.rb on lines 443..456
      lib/thrift/t_c_l_i_service.rb on lines 459..472
      lib/thrift/t_c_l_i_service.rb on lines 475..488
      lib/thrift/t_c_l_i_service.rb on lines 491..504
      lib/thrift/t_c_l_i_service.rb on lines 523..536
      lib/thrift/t_c_l_i_service.rb on lines 539..552
      lib/thrift/t_c_l_i_service.rb on lines 555..568
      lib/thrift/t_c_l_i_service.rb on lines 571..584
      lib/thrift/t_c_l_i_service.rb on lines 587..600
      lib/thrift/t_c_l_i_service.rb on lines 603..616
      lib/thrift/t_c_l_i_service.rb on lines 619..632
      lib/thrift/t_c_l_i_service.rb on lines 635..648
      lib/thrift/t_c_l_i_service.rb on lines 651..664
      lib/thrift/t_c_l_i_service.rb on lines 667..680
      lib/thrift/t_c_l_i_service.rb on lines 683..696
      lib/thrift/t_c_l_i_service.rb on lines 699..712
      lib/thrift/t_c_l_i_service.rb on lines 715..728
      lib/thrift/t_c_l_i_service.rb on lines 731..744
      lib/thrift/t_c_l_i_service.rb on lines 747..760
      lib/thrift/t_c_l_i_service.rb on lines 763..776
      lib/thrift/t_c_l_i_service.rb on lines 779..792
      lib/thrift/t_c_l_i_service.rb on lines 795..808
      lib/thrift/t_c_l_i_service.rb on lines 811..824
      lib/thrift/t_c_l_i_service.rb on lines 827..840
      lib/thrift/t_c_l_i_service.rb on lines 843..856
      lib/thrift/t_c_l_i_service.rb on lines 859..872
      lib/thrift/t_c_l_i_service.rb on lines 875..888
      lib/thrift/t_c_l_i_service.rb on lines 891..904
      lib/thrift/t_c_l_i_service.rb on lines 907..920
      lib/thrift/t_c_l_i_service.rb on lines 923..936
      lib/thrift/t_c_l_i_service.rb on lines 939..952
      lib/thrift/t_c_l_i_service.rb on lines 955..968
      lib/thrift/t_c_l_i_service.rb on lines 971..984
      lib/thrift/t_c_l_i_service.rb on lines 987..1000
      lib/thrift/t_c_l_i_service.rb on lines 1003..1016
      lib/thrift/t_c_l_i_service.rb on lines 1019..1032
      lib/thrift/t_c_l_i_service.rb on lines 1035..1048
      lib/thrift/thrift_hive.rb on lines 257..270

      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

      There are no issues that match your filters.

      Category
      Status