Sha256: 2623c4a7c7031eb86451597681877b0151b7d2f7f46c58f308df50e13092c8c4
Contents?: true
Size: 666 Bytes
Versions: 11
Compression:
Stored size: 666 Bytes
Contents
module Goodcheck class Issue attr_reader :buffer attr_reader :range attr_reader :rule attr_reader :text def initialize(buffer:, range:, rule:, text:) @buffer = buffer @range = range @rule = rule @text = text end def path buffer.path end def location unless @location start_line, start_column = buffer.location_for_position(range.begin) end_line, end_column = buffer.location_for_position(range.end) @location = Location.new(start_line: start_line, start_column: start_column, end_line: end_line, end_column: end_column) end @location end end end
Version data entries
11 entries across 11 versions & 1 rubygems