forward3d/rbhive

View on GitHub

Showing 349 of 414 total issues

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

  class Get_indexes_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
lib/thrift/thrift_hive_metastore.rb on lines 2939..2956

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

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

  class Get_partitions_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
lib/thrift/thrift_hive_metastore.rb on lines 2939..2956
lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

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

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

  class Get_partitions_with_auth_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
lib/thrift/thrift_hive_metastore.rb on lines 2939..2956
lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

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

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

  class Get_partitions_ps_with_auth_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
lib/thrift/thrift_hive_metastore.rb on lines 2939..2956
lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

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

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

  class Get_partitions_by_filter_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

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

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 Drop_partition_by_name_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    DB_NAME = 1
    TBL_NAME = 2
    PART_NAME = 3
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 3181..3200

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

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 Drop_index_by_name_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    DB_NAME = 1
    TBL_NAME = 2
    INDEX_NAME = 3
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2503..2522

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

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

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

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

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

Refactorings

Further Reading

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

    class TGetTablesResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetColumnsResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TExecuteStatementResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetTypeInfoResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetCatalogsResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetTableTypesResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetResultSetMetadataResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      SCHEMA = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetSchemasResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1430..1446
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    class TGetFunctionsResp
      include ::Thrift::Struct, ::Thrift::Struct_Union
      STATUS = 1
      OPERATIONHANDLE = 2

Severity: Major
Found in lib/thrift/t_c_l_i_service_types.rb and 8 other locations - About 1 hr to fix
lib/thrift/t_c_l_i_service_types.rb on lines 1151..1167
lib/thrift/t_c_l_i_service_types.rb on lines 1187..1203
lib/thrift/t_c_l_i_service_types.rb on lines 1223..1239
lib/thrift/t_c_l_i_service_types.rb on lines 1263..1279
lib/thrift/t_c_l_i_service_types.rb on lines 1307..1323
lib/thrift/t_c_l_i_service_types.rb on lines 1343..1359
lib/thrift/t_c_l_i_service_types.rb on lines 1387..1403
lib/thrift/t_c_l_i_service_types.rb on lines 1579..1595

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  class Append_partition_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    DB_NAME = 1
    TBL_NAME = 2
    PART_VALS = 3
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2545..2562

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

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

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

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

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

Refactorings

Further Reading

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

  class Get_type_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

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

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

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

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

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

Refactorings

Further Reading

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

  class Get_partition_by_name_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0
    O1 = 1
    O2 = 2
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

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

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 Get_partition_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    DB_NAME = 1
    TBL_NAME = 2
    PART_VALS = 3
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
lib/thrift/thrift_hive_metastore.rb on lines 2377..2394

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

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