Method: Slither::Section#parse_when_problem

Defined in:
lib/slither/section.rb

#parse_when_problem(line) ⇒ Object



71
72
73
74
75
76
77
78
# File 'lib/slither/section.rb', line 71

def parse_when_problem(line)
  line_data = line.unpack(@columns.map { |c| "a#{c.length}" }.join(''))
  row = ''
  @columns.each_with_index do |c, i|
    row << "\n'#{c.name}':'#{line_data[i]}'" unless RESERVED_NAMES.include?(c.name)
  end
  row
end