jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 132 of 161 total issues

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

            def process_scannerOpenWithPrefix(seqid, iprot, oprot)
              args = read_args(iprot, ScannerOpenWithPrefix_args)
              result = ScannerOpenWithPrefix_result.new()
              begin
                result.success = @handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 45 mins to fix
lib/adapter/hbase/hbase.rb on lines 815..823
lib/adapter/hbase/hbase.rb on lines 859..867
lib/adapter/hbase/hbase.rb on lines 870..878
lib/adapter/hbase/hbase.rb on lines 903..911
lib/adapter/hbase/hbase.rb on lines 914..922
lib/adapter/hbase/hbase.rb on lines 1078..1086

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

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

        class IOError < ::Thrift::Exception
          include ::Thrift::Struct, ::Thrift::Struct_Union
          def initialize(message=nil)
            super()
            self.message = message
Severity: Major
Found in lib/adapter/hbase/hbase_types.rb and 2 other locations - About 40 mins to fix
lib/adapter/hbase/hbase_types.rb on lines 235..253
lib/adapter/hbase/hbase_types.rb on lines 258..276

Duplicated Code

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

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

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

Tuning

This issue has a mass of 38.

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

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

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

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

Refactorings

Further Reading

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

        class IllegalArgument < ::Thrift::Exception
          include ::Thrift::Struct, ::Thrift::Struct_Union
          def initialize(message=nil)
            super()
            self.message = message
Severity: Major
Found in lib/adapter/hbase/hbase_types.rb and 2 other locations - About 40 mins to fix
lib/adapter/hbase/hbase_types.rb on lines 212..230
lib/adapter/hbase/hbase_types.rb on lines 258..276

Duplicated Code

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

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

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

Tuning

This issue has a mass of 38.

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

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

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

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

Refactorings

Further Reading

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

        class AlreadyExists < ::Thrift::Exception
          include ::Thrift::Struct, ::Thrift::Struct_Union
          def initialize(message=nil)
            super()
            self.message = message
Severity: Major
Found in lib/adapter/hbase/hbase_types.rb and 2 other locations - About 40 mins to fix
lib/adapter/hbase/hbase_types.rb on lines 212..230
lib/adapter/hbase/hbase_types.rb on lines 235..253

Duplicated Code

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

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

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

Tuning

This issue has a mass of 38.

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

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

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

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

Refactorings

Further Reading

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

            def process_scannerOpenWithScan(seqid, iprot, oprot)
              args = read_args(iprot, ScannerOpenWithScan_args)
              result = ScannerOpenWithScan_result.new()
              begin
                result.success = @handler.scannerOpenWithScan(args.tableName, args.scan, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 40 mins to fix
lib/adapter/hbase/hbase.rb on lines 848..856
lib/adapter/hbase/hbase.rb on lines 892..900
lib/adapter/hbase/hbase.rb on lines 1172..1180

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

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_getRows(seqid, iprot, oprot)
              args = read_args(iprot, GetRows_args)
              result = GetRows_result.new()
              begin
                result.success = @handler.getRows(args.tableName, args.rows, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 40 mins to fix
lib/adapter/hbase/hbase.rb on lines 848..856
lib/adapter/hbase/hbase.rb on lines 1067..1075
lib/adapter/hbase/hbase.rb on lines 1172..1180

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

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_getRowOrBefore(seqid, iprot, oprot)
              args = read_args(iprot, GetRowOrBefore_args)
              result = GetRowOrBefore_result.new()
              begin
                result.success = @handler.getRowOrBefore(args.tableName, args.row, args.family)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 40 mins to fix
lib/adapter/hbase/hbase.rb on lines 848..856
lib/adapter/hbase/hbase.rb on lines 892..900
lib/adapter/hbase/hbase.rb on lines 1067..1075

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

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_getRow(seqid, iprot, oprot)
              args = read_args(iprot, GetRow_args)
              result = GetRow_result.new()
              begin
                result.success = @handler.getRow(args.tableName, args.row, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 3 other locations - About 40 mins to fix
lib/adapter/hbase/hbase.rb on lines 892..900
lib/adapter/hbase/hbase.rb on lines 1067..1075
lib/adapter/hbase/hbase.rb on lines 1172..1180

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

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_deleteAllRowTs(seqid, iprot, oprot)
              args = read_args(iprot, DeleteAllRowTs_args)
              result = DeleteAllRowTs_result.new()
              begin
                @handler.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes)
Severity: Minor
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 40 mins to fix
lib/adapter/hbase/hbase.rb on lines 1001..1009

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

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_deleteAll(seqid, iprot, oprot)
              args = read_args(iprot, DeleteAll_args)
              result = DeleteAll_result.new()
              begin
                @handler.deleteAll(args.tableName, args.row, args.column, args.attributes)
Severity: Minor
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 40 mins to fix
lib/adapter/hbase/hbase.rb on lines 1056..1064

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

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_atomicIncrement()
              result = receive_message(AtomicIncrement_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 623..628
lib/adapter/hbase/hbase.rb on lines 640..645

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 EnableTable_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 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
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 Compact_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 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
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 DeleteTable_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 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
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 DeleteAllRow_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 2378..2392
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 3 locations. Consider refactoring.
Open

            def recv_scannerGet()
              result = receive_message(ScannerGet_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 640..645

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 DisableTable_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 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
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 DeleteAll_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 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
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 MajorCompact_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 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
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 DeleteAllTs_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 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
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

Severity
Category
Status
Source
Language