jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 29 of 161 total issues

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

            def send_mutateRowTs(tableName, row, mutations, 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

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

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

        Method recv_scannerGetList has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

                    def recv_scannerGetList()
                      result = receive_message(ScannerGetList_result)
                      return result.success unless result.success.nil?
                      raise result.io unless result.io.nil?
                      raise result.ia unless result.ia.nil?
        Severity: Minor
        Found in lib/adapter/hbase/hbase.rb - About 25 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 recv_scannerGet has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

                    def recv_scannerGet()
                      result = receive_message(ScannerGet_result)
                      return result.success unless result.success.nil?
                      raise result.io unless result.io.nil?
                      raise result.ia unless result.ia.nil?
        Severity: Minor
        Found in lib/adapter/hbase/hbase.rb - About 25 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 filters_from_key_value_pair has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

            def filters_from_key_value_pair(kvp)
              kvp[:qualifier] = kvp[:column].split(':')
              kvp[:column] = kvp[:qualifier].shift
              if (kvp[:condition].to_s != "LIKE")
                "(SingleColumnValueFilter('#{kvp[:column]}','#{kvp[:qualifier].join(':')}',#{kvp[:condition]},'binary:#{kvp[:value]}',true,true))"
        Severity: Minor
        Found in lib/result_tree_to_hbase_converter.rb - About 25 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 recv_createTable has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

                    def recv_createTable()
                      result = receive_message(CreateTable_result)
                      raise result.io unless result.io.nil?
                      raise result.ia unless result.ia.nil?
                      raise result.exist unless result.exist.nil?
        Severity: Minor
        Found in lib/adapter/hbase/hbase.rb - About 25 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 recurse_where has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

            def recurse_where(where_arr)
              result_arr = []
              where_arr.each do |val|
                if val.is_a? Hash
                  result_arr << filters_from_key_value_pair(val)
        Severity: Minor
        Found in lib/result_tree_to_hbase_converter.rb - About 25 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 recv_atomicIncrement has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

                    def recv_atomicIncrement()
                      result = receive_message(AtomicIncrement_result)
                      return result.success unless result.success.nil?
                      raise result.io unless result.io.nil?
                      raise result.ia unless result.ia.nil?
        Severity: Minor
        Found in lib/adapter/hbase/hbase.rb - About 25 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

        Severity
        Category
        Status
        Source
        Language