forward3d/rbhive

View on GitHub

Showing 414 of 414 total issues

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

      class FetchN_args
        include ::Thrift::Struct, ::Thrift::Struct_Union
        NUMROWS = 1

        FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive.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/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
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 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 Get_delegation_token_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    RENEWER_KERBEROS_PRINCIPAL_NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.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/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 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 Renew_delegation_token_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    TOKEN_STR_FORM = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.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/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 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 Execute_args
        include ::Thrift::Struct, ::Thrift::Struct_Union
        QUERY = 1

        FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive.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/facebook_service.rb on lines 623..636
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 Drop_type_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    TYPE = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.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/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 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 Get_type_all_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.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/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 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 Drop_role_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    ROLE_NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.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/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 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 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 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

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

  class Cancel_delegation_token_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    TOKEN_STR_FORM = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.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/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

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

        def recv_getClusterStatus()
          result = receive_message(GetClusterStatus_result)
          return result.success unless result.success.nil?
          raise result.ex unless result.ex.nil?
          raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getClusterStatus failed: unknown result')
Severity: Major
Found in lib/thrift/thrift_hive.rb and 31 other locations - About 20 mins to fix
lib/thrift/thrift_hive.rb on lines 41..45
lib/thrift/thrift_hive.rb on lines 57..61
lib/thrift/thrift_hive.rb on lines 73..77
lib/thrift/thrift_hive.rb on lines 89..93
lib/thrift/thrift_hive.rb on lines 105..109
lib/thrift/thrift_hive.rb on lines 137..141
lib/thrift/thrift_hive_metastore.rb on lines 75..79
lib/thrift/thrift_hive_metastore.rb on lines 91..95
lib/thrift/thrift_hive_metastore.rb on lines 175..179
lib/thrift/thrift_hive_metastore.rb on lines 261..265
lib/thrift/thrift_hive_metastore.rb on lines 277..281
lib/thrift/thrift_hive_metastore.rb on lines 499..503
lib/thrift/thrift_hive_metastore.rb on lines 515..519
lib/thrift/thrift_hive_metastore.rb on lines 548..552
lib/thrift/thrift_hive_metastore.rb on lines 597..601
lib/thrift/thrift_hive_metastore.rb on lines 613..617
lib/thrift/thrift_hive_metastore.rb on lines 629..633
lib/thrift/thrift_hive_metastore.rb on lines 730..734
lib/thrift/thrift_hive_metastore.rb on lines 746..750
lib/thrift/thrift_hive_metastore.rb on lines 762..766
lib/thrift/thrift_hive_metastore.rb on lines 778..782
lib/thrift/thrift_hive_metastore.rb on lines 794..798
lib/thrift/thrift_hive_metastore.rb on lines 810..814
lib/thrift/thrift_hive_metastore.rb on lines 826..830
lib/thrift/thrift_hive_metastore.rb on lines 842..846
lib/thrift/thrift_hive_metastore.rb on lines 858..862
lib/thrift/thrift_hive_metastore.rb on lines 874..878
lib/thrift/thrift_hive_metastore.rb on lines 890..894
lib/thrift/thrift_hive_metastore.rb on lines 906..910
lib/thrift/thrift_hive_metastore.rb on lines 922..926
lib/thrift/thrift_hive_metastore.rb on lines 938..942

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

    def recv_get_databases()
      result = receive_message(Get_databases_result)
      return result.success unless result.success.nil?
      raise result.o1 unless result.o1.nil?
      raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_databases failed: unknown result')
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
lib/thrift/thrift_hive.rb on lines 41..45
lib/thrift/thrift_hive.rb on lines 57..61
lib/thrift/thrift_hive.rb on lines 73..77
lib/thrift/thrift_hive.rb on lines 89..93
lib/thrift/thrift_hive.rb on lines 105..109
lib/thrift/thrift_hive.rb on lines 121..125
lib/thrift/thrift_hive.rb on lines 137..141
lib/thrift/thrift_hive_metastore.rb on lines 91..95
lib/thrift/thrift_hive_metastore.rb on lines 175..179
lib/thrift/thrift_hive_metastore.rb on lines 261..265
lib/thrift/thrift_hive_metastore.rb on lines 277..281
lib/thrift/thrift_hive_metastore.rb on lines 499..503
lib/thrift/thrift_hive_metastore.rb on lines 515..519
lib/thrift/thrift_hive_metastore.rb on lines 548..552
lib/thrift/thrift_hive_metastore.rb on lines 597..601
lib/thrift/thrift_hive_metastore.rb on lines 613..617
lib/thrift/thrift_hive_metastore.rb on lines 629..633
lib/thrift/thrift_hive_metastore.rb on lines 730..734
lib/thrift/thrift_hive_metastore.rb on lines 746..750
lib/thrift/thrift_hive_metastore.rb on lines 762..766
lib/thrift/thrift_hive_metastore.rb on lines 778..782
lib/thrift/thrift_hive_metastore.rb on lines 794..798
lib/thrift/thrift_hive_metastore.rb on lines 810..814
lib/thrift/thrift_hive_metastore.rb on lines 826..830
lib/thrift/thrift_hive_metastore.rb on lines 842..846
lib/thrift/thrift_hive_metastore.rb on lines 858..862
lib/thrift/thrift_hive_metastore.rb on lines 874..878
lib/thrift/thrift_hive_metastore.rb on lines 890..894
lib/thrift/thrift_hive_metastore.rb on lines 906..910
lib/thrift/thrift_hive_metastore.rb on lines 922..926
lib/thrift/thrift_hive_metastore.rb on lines 938..942

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

    def recv_get_tables()
      result = receive_message(Get_tables_result)
      return result.success unless result.success.nil?
      raise result.o1 unless result.o1.nil?
      raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
lib/thrift/thrift_hive.rb on lines 41..45
lib/thrift/thrift_hive.rb on lines 57..61
lib/thrift/thrift_hive.rb on lines 73..77
lib/thrift/thrift_hive.rb on lines 89..93
lib/thrift/thrift_hive.rb on lines 105..109
lib/thrift/thrift_hive.rb on lines 121..125
lib/thrift/thrift_hive.rb on lines 137..141
lib/thrift/thrift_hive_metastore.rb on lines 75..79
lib/thrift/thrift_hive_metastore.rb on lines 91..95
lib/thrift/thrift_hive_metastore.rb on lines 175..179
lib/thrift/thrift_hive_metastore.rb on lines 277..281
lib/thrift/thrift_hive_metastore.rb on lines 499..503
lib/thrift/thrift_hive_metastore.rb on lines 515..519
lib/thrift/thrift_hive_metastore.rb on lines 548..552
lib/thrift/thrift_hive_metastore.rb on lines 597..601
lib/thrift/thrift_hive_metastore.rb on lines 613..617
lib/thrift/thrift_hive_metastore.rb on lines 629..633
lib/thrift/thrift_hive_metastore.rb on lines 730..734
lib/thrift/thrift_hive_metastore.rb on lines 746..750
lib/thrift/thrift_hive_metastore.rb on lines 762..766
lib/thrift/thrift_hive_metastore.rb on lines 778..782
lib/thrift/thrift_hive_metastore.rb on lines 794..798
lib/thrift/thrift_hive_metastore.rb on lines 810..814
lib/thrift/thrift_hive_metastore.rb on lines 826..830
lib/thrift/thrift_hive_metastore.rb on lines 842..846
lib/thrift/thrift_hive_metastore.rb on lines 858..862
lib/thrift/thrift_hive_metastore.rb on lines 874..878
lib/thrift/thrift_hive_metastore.rb on lines 890..894
lib/thrift/thrift_hive_metastore.rb on lines 906..910
lib/thrift/thrift_hive_metastore.rb on lines 922..926
lib/thrift/thrift_hive_metastore.rb on lines 938..942

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

    def recv_drop_database()
      result = receive_message(Drop_database_result)
      raise result.o1 unless result.o1.nil?
      raise result.o2 unless result.o2.nil?
      raise result.o3 unless result.o3.nil?
Severity: Minor
Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 20 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 24..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

    def recv_create_role()
      result = receive_message(Create_role_result)
      return result.success unless result.success.nil?
      raise result.o1 unless result.o1.nil?
      raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_role failed: unknown result')
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
lib/thrift/thrift_hive.rb on lines 41..45
lib/thrift/thrift_hive.rb on lines 57..61
lib/thrift/thrift_hive.rb on lines 73..77
lib/thrift/thrift_hive.rb on lines 89..93
lib/thrift/thrift_hive.rb on lines 105..109
lib/thrift/thrift_hive.rb on lines 121..125
lib/thrift/thrift_hive.rb on lines 137..141
lib/thrift/thrift_hive_metastore.rb on lines 75..79
lib/thrift/thrift_hive_metastore.rb on lines 91..95
lib/thrift/thrift_hive_metastore.rb on lines 175..179
lib/thrift/thrift_hive_metastore.rb on lines 261..265
lib/thrift/thrift_hive_metastore.rb on lines 277..281
lib/thrift/thrift_hive_metastore.rb on lines 499..503
lib/thrift/thrift_hive_metastore.rb on lines 515..519
lib/thrift/thrift_hive_metastore.rb on lines 548..552
lib/thrift/thrift_hive_metastore.rb on lines 597..601
lib/thrift/thrift_hive_metastore.rb on lines 613..617
lib/thrift/thrift_hive_metastore.rb on lines 629..633
lib/thrift/thrift_hive_metastore.rb on lines 730..734
lib/thrift/thrift_hive_metastore.rb on lines 762..766
lib/thrift/thrift_hive_metastore.rb on lines 778..782
lib/thrift/thrift_hive_metastore.rb on lines 794..798
lib/thrift/thrift_hive_metastore.rb on lines 810..814
lib/thrift/thrift_hive_metastore.rb on lines 826..830
lib/thrift/thrift_hive_metastore.rb on lines 842..846
lib/thrift/thrift_hive_metastore.rb on lines 858..862
lib/thrift/thrift_hive_metastore.rb on lines 874..878
lib/thrift/thrift_hive_metastore.rb on lines 890..894
lib/thrift/thrift_hive_metastore.rb on lines 906..910
lib/thrift/thrift_hive_metastore.rb on lines 922..926
lib/thrift/thrift_hive_metastore.rb on lines 938..942

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language