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

          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

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

            def process_getRowWithColumns(seqid, iprot, oprot)
              args = read_args(iprot, GetRowWithColumns_args)
              result = GetRowWithColumns_result.new()
              begin
                result.success = @handler.getRowWithColumns(args.tableName, args.row, 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 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
lib/adapter/hbase/hbase.rb on lines 1100..1108

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

            def process_scannerOpen(seqid, iprot, oprot)
              args = read_args(iprot, ScannerOpen_args)
              result = ScannerOpen_result.new()
              begin
                result.success = @handler.scannerOpen(args.tableName, args.startRow, 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 1100..1108

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

            def process_getRowTs(seqid, iprot, oprot)
              args = read_args(iprot, GetRowTs_args)
              result = GetRowTs_result.new()
              begin
                result.success = @handler.getRowTs(args.tableName, args.row, args.timestamp, 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 903..911
lib/adapter/hbase/hbase.rb on lines 914..922
lib/adapter/hbase/hbase.rb on lines 1078..1086
lib/adapter/hbase/hbase.rb on lines 1100..1108

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

            def process_getRowsWithColumns(seqid, iprot, oprot)
              args = read_args(iprot, GetRowsWithColumns_args)
              result = GetRowsWithColumns_result.new()
              begin
                result.success = @handler.getRowsWithColumns(args.tableName, args.rows, 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 914..922
lib/adapter/hbase/hbase.rb on lines 1078..1086
lib/adapter/hbase/hbase.rb on lines 1100..1108

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

            def process_get(seqid, iprot, oprot)
              args = read_args(iprot, Get_args)
              result = Get_result.new()
              begin
                result.success = @handler.get(args.tableName, args.row, args.column, 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 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
lib/adapter/hbase/hbase.rb on lines 1100..1108

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

Severity
Category
Status
Source
Language