jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 132 of 161 total issues

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

          class DeleteAllRowTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 11 other locations - About 35 mins to fix
lib/adapter/hbase/hbase.rb on lines 1215..1228
lib/adapter/hbase/hbase.rb on lines 1248..1261
lib/adapter/hbase/hbase.rb on lines 1315..1328
lib/adapter/hbase/hbase.rb on lines 1347..1360
lib/adapter/hbase/hbase.rb on lines 1523..1536
lib/adapter/hbase/hbase.rb on lines 2278..2291
lib/adapter/hbase/hbase.rb on lines 2323..2336
lib/adapter/hbase/hbase.rb on lines 2362..2375
lib/adapter/hbase/hbase.rb on lines 2378..2392
lib/adapter/hbase/hbase.rb on lines 2395..2408
lib/adapter/hbase/hbase.rb on lines 2428..2441

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

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

          class Increment_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 11 other locations - About 35 mins to fix
lib/adapter/hbase/hbase.rb on lines 1215..1228
lib/adapter/hbase/hbase.rb on lines 1248..1261
lib/adapter/hbase/hbase.rb on lines 1315..1328
lib/adapter/hbase/hbase.rb on lines 1347..1360
lib/adapter/hbase/hbase.rb on lines 1523..1536
lib/adapter/hbase/hbase.rb on lines 2278..2291
lib/adapter/hbase/hbase.rb on lines 2323..2336
lib/adapter/hbase/hbase.rb on lines 2362..2375
lib/adapter/hbase/hbase.rb on lines 2378..2392
lib/adapter/hbase/hbase.rb on lines 2428..2441
lib/adapter/hbase/hbase.rb on lines 2470..2483

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

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

          class Increment_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            INCREMENT = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 11 other locations - About 35 mins to fix
lib/adapter/hbase/hbase.rb on lines 1215..1228
lib/adapter/hbase/hbase.rb on lines 1248..1261
lib/adapter/hbase/hbase.rb on lines 1315..1328
lib/adapter/hbase/hbase.rb on lines 1347..1360
lib/adapter/hbase/hbase.rb on lines 1523..1536
lib/adapter/hbase/hbase.rb on lines 2278..2291
lib/adapter/hbase/hbase.rb on lines 2323..2336
lib/adapter/hbase/hbase.rb on lines 2362..2375
lib/adapter/hbase/hbase.rb on lines 2395..2408
lib/adapter/hbase/hbase.rb on lines 2428..2441
lib/adapter/hbase/hbase.rb on lines 2470..2483

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

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

          class IncrementRows_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 11 other locations - About 35 mins to fix
lib/adapter/hbase/hbase.rb on lines 1215..1228
lib/adapter/hbase/hbase.rb on lines 1248..1261
lib/adapter/hbase/hbase.rb on lines 1315..1328
lib/adapter/hbase/hbase.rb on lines 1347..1360
lib/adapter/hbase/hbase.rb on lines 1523..1536
lib/adapter/hbase/hbase.rb on lines 2278..2291
lib/adapter/hbase/hbase.rb on lines 2323..2336
lib/adapter/hbase/hbase.rb on lines 2362..2375
lib/adapter/hbase/hbase.rb on lines 2378..2392
lib/adapter/hbase/hbase.rb on lines 2395..2408
lib/adapter/hbase/hbase.rb on lines 2470..2483

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

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

            def recv_scannerGetList()
              result = receive_message(ScannerGetList_result)
              return result.success unless result.success.nil?
              raise result.io unless result.io.nil?
              raise result.ia unless result.ia.nil?
Severity: Minor
Found in lib/adapter/hbase/hbase.rb and 2 other locations - About 35 mins to fix
lib/adapter/hbase/hbase.rb on lines 420..425
lib/adapter/hbase/hbase.rb on lines 623..628

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

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

            def process_isTableEnabled(seqid, iprot, oprot)
              args = read_args(iprot, IsTableEnabled_args)
              result = IsTableEnabled_result.new()
              begin
                result.success = @handler.isTableEnabled(args.tableName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 30 mins to fix
lib/adapter/hbase/hbase.rb on lines 767..775
lib/adapter/hbase/hbase.rb on lines 778..786
lib/adapter/hbase/hbase.rb on lines 1183..1191

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

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

            def process_getRegionInfo(seqid, iprot, oprot)
              args = read_args(iprot, GetRegionInfo_args)
              result = GetRegionInfo_result.new()
              begin
                result.success = @handler.getRegionInfo(args.row)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 30 mins to fix
lib/adapter/hbase/hbase.rb on lines 723..731
lib/adapter/hbase/hbase.rb on lines 767..775
lib/adapter/hbase/hbase.rb on lines 778..786

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

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

            def process_getColumnDescriptors(seqid, iprot, oprot)
              args = read_args(iprot, GetColumnDescriptors_args)
              result = GetColumnDescriptors_result.new()
              begin
                result.success = @handler.getColumnDescriptors(args.tableName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 30 mins to fix
lib/adapter/hbase/hbase.rb on lines 723..731
lib/adapter/hbase/hbase.rb on lines 778..786
lib/adapter/hbase/hbase.rb on lines 1183..1191

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

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

            def process_getTableRegions(seqid, iprot, oprot)
              args = read_args(iprot, GetTableRegions_args)
              result = GetTableRegions_result.new()
              begin
                result.success = @handler.getTableRegions(args.tableName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 30 mins to fix
lib/adapter/hbase/hbase.rb on lines 723..731
lib/adapter/hbase/hbase.rb on lines 767..775
lib/adapter/hbase/hbase.rb on lines 1183..1191

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

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

            def process_incrementRows(seqid, iprot, oprot)
              args = read_args(iprot, IncrementRows_args)
              result = IncrementRows_result.new()
              begin
                @handler.incrementRows(args.increments)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 701..709
lib/adapter/hbase/hbase.rb on lines 712..720
lib/adapter/hbase/hbase.rb on lines 734..742
lib/adapter/hbase/hbase.rb on lines 745..753
lib/adapter/hbase/hbase.rb on lines 804..812
lib/adapter/hbase/hbase.rb on lines 1034..1042

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

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

            def process_compact(seqid, iprot, oprot)
              args = read_args(iprot, Compact_args)
              result = Compact_result.new()
              begin
                @handler.compact(args.tableNameOrRegionName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 701..709
lib/adapter/hbase/hbase.rb on lines 712..720
lib/adapter/hbase/hbase.rb on lines 745..753
lib/adapter/hbase/hbase.rb on lines 804..812
lib/adapter/hbase/hbase.rb on lines 1034..1042
lib/adapter/hbase/hbase.rb on lines 1045..1053

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

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

            def process_majorCompact(seqid, iprot, oprot)
              args = read_args(iprot, MajorCompact_args)
              result = MajorCompact_result.new()
              begin
                @handler.majorCompact(args.tableNameOrRegionName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 701..709
lib/adapter/hbase/hbase.rb on lines 712..720
lib/adapter/hbase/hbase.rb on lines 734..742
lib/adapter/hbase/hbase.rb on lines 804..812
lib/adapter/hbase/hbase.rb on lines 1034..1042
lib/adapter/hbase/hbase.rb on lines 1045..1053

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

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

            def process_deleteTable(seqid, iprot, oprot)
              args = read_args(iprot, DeleteTable_args)
              result = DeleteTable_result.new()
              begin
                @handler.deleteTable(args.tableName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 701..709
lib/adapter/hbase/hbase.rb on lines 712..720
lib/adapter/hbase/hbase.rb on lines 734..742
lib/adapter/hbase/hbase.rb on lines 745..753
lib/adapter/hbase/hbase.rb on lines 1034..1042
lib/adapter/hbase/hbase.rb on lines 1045..1053

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

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

            def process_increment(seqid, iprot, oprot)
              args = read_args(iprot, Increment_args)
              result = Increment_result.new()
              begin
                @handler.increment(args.increment)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 701..709
lib/adapter/hbase/hbase.rb on lines 712..720
lib/adapter/hbase/hbase.rb on lines 734..742
lib/adapter/hbase/hbase.rb on lines 745..753
lib/adapter/hbase/hbase.rb on lines 804..812
lib/adapter/hbase/hbase.rb on lines 1045..1053

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

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

            def process_disableTable(seqid, iprot, oprot)
              args = read_args(iprot, DisableTable_args)
              result = DisableTable_result.new()
              begin
                @handler.disableTable(args.tableName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 701..709
lib/adapter/hbase/hbase.rb on lines 734..742
lib/adapter/hbase/hbase.rb on lines 745..753
lib/adapter/hbase/hbase.rb on lines 804..812
lib/adapter/hbase/hbase.rb on lines 1034..1042
lib/adapter/hbase/hbase.rb on lines 1045..1053

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

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

            def process_enableTable(seqid, iprot, oprot)
              args = read_args(iprot, EnableTable_args)
              result = EnableTable_result.new()
              begin
                @handler.enableTable(args.tableName)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 712..720
lib/adapter/hbase/hbase.rb on lines 734..742
lib/adapter/hbase/hbase.rb on lines 745..753
lib/adapter/hbase/hbase.rb on lines 804..812
lib/adapter/hbase/hbase.rb on lines 1034..1042
lib/adapter/hbase/hbase.rb on lines 1045..1053

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

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 MajorCompact_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAMEORREGIONNAME = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 8 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 1198..1212
lib/adapter/hbase/hbase.rb on lines 1231..1245
lib/adapter/hbase/hbase.rb on lines 1264..1278
lib/adapter/hbase/hbase.rb on lines 1299..1312
lib/adapter/hbase/hbase.rb on lines 1396..1410
lib/adapter/hbase/hbase.rb on lines 1431..1445
lib/adapter/hbase/hbase.rb on lines 1506..1520
lib/adapter/hbase/hbase.rb on lines 2926..2940

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

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 GetColumnDescriptors_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 8 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 1198..1212
lib/adapter/hbase/hbase.rb on lines 1231..1245
lib/adapter/hbase/hbase.rb on lines 1264..1278
lib/adapter/hbase/hbase.rb on lines 1299..1312
lib/adapter/hbase/hbase.rb on lines 1331..1344
lib/adapter/hbase/hbase.rb on lines 1431..1445
lib/adapter/hbase/hbase.rb on lines 1506..1520
lib/adapter/hbase/hbase.rb on lines 2926..2940

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

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 GetTableRegions_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 8 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 1198..1212
lib/adapter/hbase/hbase.rb on lines 1231..1245
lib/adapter/hbase/hbase.rb on lines 1264..1278
lib/adapter/hbase/hbase.rb on lines 1299..1312
lib/adapter/hbase/hbase.rb on lines 1331..1344
lib/adapter/hbase/hbase.rb on lines 1396..1410
lib/adapter/hbase/hbase.rb on lines 1506..1520
lib/adapter/hbase/hbase.rb on lines 2926..2940

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

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 IsTableEnabled_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1

            FIELDS = {
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 8 other locations - About 25 mins to fix
lib/adapter/hbase/hbase.rb on lines 1198..1212
lib/adapter/hbase/hbase.rb on lines 1231..1245
lib/adapter/hbase/hbase.rb on lines 1299..1312
lib/adapter/hbase/hbase.rb on lines 1331..1344
lib/adapter/hbase/hbase.rb on lines 1396..1410
lib/adapter/hbase/hbase.rb on lines 1431..1445
lib/adapter/hbase/hbase.rb on lines 1506..1520
lib/adapter/hbase/hbase.rb on lines 2926..2940

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

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