class Codeqa::Checkers::CheckConflict
Public Class Methods
check?(sourcefile)
click to toggle source
# File lib/codeqa/checkers/check_conflict.rb, line 14 def self.check?(sourcefile) sourcefile.text? end
Private Class Methods
pattern()
click to toggle source
# File lib/codeqa/checkers/check_conflict.rb, line 20 def self.pattern @pattern ||= /^<<<<<<<|^>>>>>>>|^=======$/m end
Public Instance Methods
hint()
click to toggle source
# File lib/codeqa/checkers/check_conflict.rb, line 10 def hint 'Remove the lines which are beginning with <<<<<<< or >>>>>>> or =======.' end
name()
click to toggle source
# File lib/codeqa/checkers/check_conflict.rb, line 6 def name 'conflict' end
Private Instance Methods
error_msg(_line, line_number, _pos)
click to toggle source
# File lib/codeqa/checkers/check_conflict.rb, line 23 def error_msg(_line, line_number, _pos) "conflict leftovers in line #{line_number}, please merge properly" end