forward3d/rbhive

View on GitHub
lib/thrift/facebook_service.rb

Summary

Maintainability
D
2 days
Test Coverage

File facebook_service.rb has 496 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'thrift'
require_relative 'fb303_types'

module FacebookService
  class Client
Severity: Minor
Found in lib/thrift/facebook_service.rb - About 7 hrs to fix

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

      class Client
        include ::Thrift::Client
    
        def getName()
          send_getName()
    Severity: Minor
    Found in lib/thrift/facebook_service.rb - About 4 hrs to fix

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

        class GetOptions_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Minor
      Found in lib/thrift/facebook_service.rb and 1 other location - About 45 mins to fix
      lib/thrift/facebook_service.rb on lines 432..445

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 40.

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

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

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

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

      Refactorings

      Further Reading

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

        class GetCounters_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Minor
      Found in lib/thrift/facebook_service.rb and 1 other location - About 45 mins to fix
      lib/thrift/facebook_service.rb on lines 560..573

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 40.

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

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

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

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

      Refactorings

      Further Reading

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

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

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 38.

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

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

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

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

      Refactorings

      Further Reading

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

        class GetCpuProfile_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class AliveSince_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetCounter_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetName_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetVersion_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetStatusDetails_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetOption_result
          include ::Thrift::Struct, ::Thrift::Struct_Union
          SUCCESS = 0
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetCpuProfile_args
          include ::Thrift::Struct, ::Thrift::Struct_Union
          PROFILEDURATIONINSEC = 1
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetCounter_args
          include ::Thrift::Struct, ::Thrift::Struct_Union
          KEY = 1
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 513..526
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

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

        class GetOption_args
          include ::Thrift::Struct, ::Thrift::Struct_Union
          KEY = 1
      
          FIELDS = {
      Severity: Major
      Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
      lib/thrift/facebook_service.rb on lines 305..318
      lib/thrift/facebook_service.rb on lines 336..349
      lib/thrift/facebook_service.rb on lines 401..414
      lib/thrift/facebook_service.rb on lines 448..461
      lib/thrift/facebook_service.rb on lines 464..477
      lib/thrift/facebook_service.rb on lines 529..542
      lib/thrift/facebook_service.rb on lines 576..589
      lib/thrift/facebook_service.rb on lines 592..605
      lib/thrift/facebook_service.rb on lines 623..636
      lib/thrift/thrift_hive.rb on lines 241..254
      lib/thrift/thrift_hive.rb on lines 306..319
      lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
      lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
      lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
      lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
      lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
      lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
      lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
      lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
      lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
      lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
      lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
      lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

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

      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