Class: Pluginscan::PrintableFinding

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/pluginscan/reports/issues_report/error_list_printer.rb

Instance Method Summary collapse

Instance Method Details

#col_numberObject



84
85
86
87
88
# File 'lib/pluginscan/reports/issues_report/error_list_printer.rb', line 84

def col_number
  # Seems like vim treats tabs as single spaces for the purposes of calculating columns - at least on my setup
  # so we don't need to expand the tabs
  __getobj__.line.index(match) + 1
end

#lineObject



90
91
92
# File 'lib/pluginscan/reports/issues_report/error_list_printer.rb', line 90

def line
  escape_special_chars(__getobj__.line.strip)
end