jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 161 of 161 total issues

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

      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_getRowsTs(seqid, iprot, oprot)
                    args = read_args(iprot, GetRowsTs_args)
                    result = GetRowsTs_result.new()
                    begin
                      result.success = @handler.getRowsTs(args.tableName, args.rows, 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 870..878
      lib/adapter/hbase/hbase.rb on lines 903..911
      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_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

      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_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

      Method send_getRowsWithColumnsTs has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                  def send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
      Severity: Minor
      Found in lib/adapter/hbase/hbase.rb - About 35 mins to fix

        Method send_scannerOpenWithStop has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

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