Showing 5 of 5 total issues
Assignment Branch Condition size for parse_next_lines is too high. [19.82/15] Open
def parse_next_lines raise 'Parse already done!' if @lines.empty? line = @lines.first Logger.debug "\nLine #{@log_line_number}: '#{line.strip}'"
- Read upRead up
- Exclude checks
Assignment Branch Condition size for apply_scope_changes is too high. [16.52/15] Open
def apply_scope_changes # In the hope that scope changes happen not on the same # line as messages. Gulp. scope_changes(@lines.first).each do |op| if op == :pop
- Read upRead up
- Exclude checks
Method apply_scope_changes
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def apply_scope_changes # In the hope that scope changes happen not on the same # line as messages. Gulp. scope_changes(@lines.first).each do |op| if op == :pop
- Read upRead up
Method parse_next_lines
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def parse_next_lines raise 'Parse already done!' if @lines.empty? line = @lines.first Logger.debug "\nLine #{@log_line_number}: '#{line.strip}'"
- Read upRead up