jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 161 of 161 total issues

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

          class MutateRows_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 5 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2056..2071
lib/adapter/hbase/hbase.rb on lines 2103..2118
lib/adapter/hbase/hbase.rb on lines 2188..2203
lib/adapter/hbase/hbase.rb on lines 2867..2882
lib/adapter/hbase/hbase.rb on lines 2943..2958

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

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_mutateRowsTs(seqid, iprot, oprot)
              args = read_args(iprot, MutateRowsTs_args)
              result = MutateRowsTs_result.new()
              begin
                @handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 936..946

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

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_mutateRow(seqid, iprot, oprot)
              args = read_args(iprot, MutateRow_args)
              result = MutateRow_result.new()
              begin
                @handler.mutateRow(args.tableName, args.row, args.mutations, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 975..985

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

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

          class ScannerOpenWithPrefix_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 1281..1296
lib/adapter/hbase/hbase.rb on lines 2509..2524
lib/adapter/hbase/hbase.rb on lines 2556..2571
lib/adapter/hbase/hbase.rb on lines 2607..2622
lib/adapter/hbase/hbase.rb on lines 2701..2716
lib/adapter/hbase/hbase.rb on lines 2755..2770

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

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

          class ScannerOpenTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 1281..1296
lib/adapter/hbase/hbase.rb on lines 2509..2524
lib/adapter/hbase/hbase.rb on lines 2556..2571
lib/adapter/hbase/hbase.rb on lines 2607..2622
lib/adapter/hbase/hbase.rb on lines 2651..2666
lib/adapter/hbase/hbase.rb on lines 2755..2770

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

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

          class ScannerOpenWithStopTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 1281..1296
lib/adapter/hbase/hbase.rb on lines 2509..2524
lib/adapter/hbase/hbase.rb on lines 2556..2571
lib/adapter/hbase/hbase.rb on lines 2607..2622
lib/adapter/hbase/hbase.rb on lines 2651..2666
lib/adapter/hbase/hbase.rb on lines 2701..2716

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

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

          class ScannerOpenWithStop_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 1281..1296
lib/adapter/hbase/hbase.rb on lines 2509..2524
lib/adapter/hbase/hbase.rb on lines 2556..2571
lib/adapter/hbase/hbase.rb on lines 2651..2666
lib/adapter/hbase/hbase.rb on lines 2701..2716
lib/adapter/hbase/hbase.rb on lines 2755..2770

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

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

          class IsTableEnabled_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 2509..2524
lib/adapter/hbase/hbase.rb on lines 2556..2571
lib/adapter/hbase/hbase.rb on lines 2607..2622
lib/adapter/hbase/hbase.rb on lines 2651..2666
lib/adapter/hbase/hbase.rb on lines 2701..2716
lib/adapter/hbase/hbase.rb on lines 2755..2770

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

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

          class ScannerOpen_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 1281..1296
lib/adapter/hbase/hbase.rb on lines 2509..2524
lib/adapter/hbase/hbase.rb on lines 2607..2622
lib/adapter/hbase/hbase.rb on lines 2651..2666
lib/adapter/hbase/hbase.rb on lines 2701..2716
lib/adapter/hbase/hbase.rb on lines 2755..2770

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

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

          class ScannerOpenWithScan_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 6 other locations - About 55 mins to fix
lib/adapter/hbase/hbase.rb on lines 1281..1296
lib/adapter/hbase/hbase.rb on lines 2556..2571
lib/adapter/hbase/hbase.rb on lines 2607..2622
lib/adapter/hbase/hbase.rb on lines 2651..2666
lib/adapter/hbase/hbase.rb on lines 2701..2716
lib/adapter/hbase/hbase.rb on lines 2755..2770

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

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_scannerOpenWithStopTs(seqid, iprot, oprot)
              args = read_args(iprot, ScannerOpenWithStopTs_args)
              result = ScannerOpenWithStopTs_result.new()
              begin
                result.success = @handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes)
Severity: Minor
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 50 mins to fix
lib/adapter/hbase/hbase.rb on lines 837..845

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

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_getVerTs(seqid, iprot, oprot)
              args = read_args(iprot, GetVerTs_args)
              result = GetVerTs_result.new()
              begin
                result.success = @handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes)
Severity: Minor
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 50 mins to fix
lib/adapter/hbase/hbase.rb on lines 1122..1130

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

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

            def process_scannerOpenTs(seqid, iprot, oprot)
              args = read_args(iprot, ScannerOpenTs_args)
              result = ScannerOpenTs_result.new()
              begin
                result.success = @handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 4 other locations - About 45 mins to fix
lib/adapter/hbase/hbase.rb on lines 826..834
lib/adapter/hbase/hbase.rb on lines 881..889
lib/adapter/hbase/hbase.rb on lines 925..933
lib/adapter/hbase/hbase.rb on lines 1089..1097

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

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

            def process_getRowWithColumnsTs(seqid, iprot, oprot)
              args = read_args(iprot, GetRowWithColumnsTs_args)
              result = GetRowWithColumnsTs_result.new()
              begin
                result.success = @handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 4 other locations - About 45 mins to fix
lib/adapter/hbase/hbase.rb on lines 826..834
lib/adapter/hbase/hbase.rb on lines 925..933
lib/adapter/hbase/hbase.rb on lines 1089..1097
lib/adapter/hbase/hbase.rb on lines 1111..1119

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

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

            def process_getRowsWithColumnsTs(seqid, iprot, oprot)
              args = read_args(iprot, GetRowsWithColumnsTs_args)
              result = GetRowsWithColumnsTs_result.new()
              begin
                result.success = @handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 4 other locations - About 45 mins to fix
lib/adapter/hbase/hbase.rb on lines 826..834
lib/adapter/hbase/hbase.rb on lines 881..889
lib/adapter/hbase/hbase.rb on lines 1089..1097
lib/adapter/hbase/hbase.rb on lines 1111..1119

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

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

            def process_getVer(seqid, iprot, oprot)
              args = read_args(iprot, GetVer_args)
              result = GetVer_result.new()
              begin
                result.success = @handler.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 4 other locations - About 45 mins to fix
lib/adapter/hbase/hbase.rb on lines 881..889
lib/adapter/hbase/hbase.rb on lines 925..933
lib/adapter/hbase/hbase.rb on lines 1089..1097
lib/adapter/hbase/hbase.rb on lines 1111..1119

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

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

            def process_scannerOpenWithStop(seqid, iprot, oprot)
              args = read_args(iprot, ScannerOpenWithStop_args)
              result = ScannerOpenWithStop_result.new()
              begin
                result.success = @handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes)
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 4 other locations - About 45 mins to fix
lib/adapter/hbase/hbase.rb on lines 826..834
lib/adapter/hbase/hbase.rb on lines 881..889
lib/adapter/hbase/hbase.rb on lines 925..933
lib/adapter/hbase/hbase.rb on lines 1111..1119

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

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

Method getVerTs has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

            def getVerTs(tableName, row, column, timestamp, numVersions, attributes)
Severity: Minor
Found in lib/adapter/hbase/hbase.rb - About 45 mins to fix

    Method execute has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        def execute(thrift_call_group,host_s=nil,port_n=nil,incr=false)
          @@host = host_s if !host_s.nil?
          @@port = port_n if !port_n.nil?
          socket = Thrift::Socket.new(@@host, @@port)
    
    
    Severity: Minor
    Found in lib/executor.rb - About 45 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method send_scannerOpenWithStopTs has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                def send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
    Severity: Minor
    Found in lib/adapter/hbase/hbase.rb - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language