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)
Method send_scannerOpenWithStop
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
Method getRowWithColumnsTs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
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?
- 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 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?
- 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 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))"
- 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 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?
- 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 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)
- 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 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?
- 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"