jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 29 of 161 total issues

File hbase.rb has 2210 lines of code (exceeds 250 allowed). Consider refactoring.
Open

module Apache
  module Hadoop
    module Hbase
      module Thrift
        module Hbase
Severity: Major
Found in lib/adapter/hbase/hbase.rb - About 6 days to fix

    Class Client has 129 methods (exceeds 20 allowed). Consider refactoring.
    Open

              class Client
                include ::Thrift::Client
    
                def enableTable(tableName)
                  send_enableTable(tableName)
    Severity: Major
    Found in lib/adapter/hbase/hbase.rb - About 2 days to fix

      Class Processor has 43 methods (exceeds 20 allowed). Consider refactoring.
      Open

                class Processor
                  include ::Thrift::Processor
      
                  def process_enableTable(seqid, iprot, oprot)
                    args = read_args(iprot, EnableTable_args)
      Severity: Minor
      Found in lib/adapter/hbase/hbase.rb - About 5 hrs to fix

        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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    def getRowsByScanner(table,columns,filters,limit,obj={})
                                Severity: Minor
                                Found in lib/adapter/hbase.rb - About 35 mins to fix

                                  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_scannerOpenTs has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

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

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

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