forward3d/rbhive

View on GitHub

Showing 349 of 414 total issues

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

    def recv_get_delegation_token_with_signature()
      result = receive_message(Get_delegation_token_with_signature_result)
      return result.success unless result.success.nil?
      raise result.o1 unless result.o1.nil?
      raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token_with_signature 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 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 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 3 locations. Consider refactoring.
Open

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

    def process_get_all_databases(seqid, iprot, oprot)
      args = read_args(iprot, Get_all_databases_args)
      result = Get_all_databases_result.new()
      begin
        result.success = @handler.get_all_databases()
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 1544..1552

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 27.

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

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

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

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

Refactorings

Further Reading

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

    def recv_create_database()
      result = receive_message(Create_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 58..64

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 process_get_role_names(seqid, iprot, oprot)
      args = read_args(iprot, Get_role_names_args)
      result = Get_role_names_result.new()
      begin
        result.success = @handler.get_role_names()
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 1019..1027

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