Showing 29 of 161 total issues
File hbase.rb
has 2210 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Apache
module Hadoop
module Hbase
module Thrift
module Hbase
Class Client
has 129 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Client
include ::Thrift::Client
def enableTable(tableName)
send_enableTable(tableName)
Class Processor
has 43 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Processor
include ::Thrift::Processor
def process_enableTable(seqid, iprot, oprot)
args = read_args(iprot, EnableTable_args)
Method getVerTs
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def getVerTs(tableName, row, column, timestamp, numVersions, attributes)
Method execute
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
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)
- Read upRead up
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
Open
def send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
Method send_getVerTs
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_getVerTs(tableName, row, column, timestamp, numVersions, attributes)
Method scannerOpenWithStopTs
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
Method deleteAllTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def deleteAllTs(tableName, row, column, timestamp, attributes)
Method getRowsWithColumnsTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
Method mutateRowTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def mutateRowTs(tableName, row, mutations, timestamp, attributes)
Method send_getVer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_getVer(tableName, row, column, numVersions, attributes)
Method scannerOpenTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
Method send_deleteAllTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_deleteAllTs(tableName, row, column, timestamp, attributes)
Method getVer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def getVer(tableName, row, column, numVersions, attributes)
Method scannerOpenWithStop
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
Method getRowsByScanner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def getRowsByScanner(table,columns,filters,limit,obj={})
Method send_getRowsWithColumnsTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
Method send_scannerOpenTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
Method send_getRowWithColumnsTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)