Showing 3 of 3 total issues
Method enhance
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def enhance(data) # If the message on stdin was trucated, the last item might not make # sense. data.delete(data.keys.last) if data.keys.last != 'Termination'
Method run
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def run %i[job_name backup_level status].each do |name| raise("Parameter #{name} is required") unless opts[name] end
- Read upRead up
Method parse
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def parse(text) data = {} line_continuation = nil text.each_line do |line|
- Read upRead up