Sha256: 50829f4c1da043ee50aacc41d366379c3002f42c64e30c7b7f09a01685c86eca
Contents?: true
Size: 587 Bytes
Versions: 8
Compression:
Stored size: 587 Bytes
Contents
require 'codeqa/checkers/pattern_checker' module Codeqa module Checkers class CheckConflict < PatternChecker def name 'conflict' end def hint 'Remove the lines which are beginning with <<<<<<< or >>>>>>> or =======.' end def self.check?(sourcefile) sourcefile.text? end private def self.pattern @pattern ||= /^<<<<<<<|^>>>>>>>|^=======$/m end def error_msg(_line, line_number, _pos) "conflict leftovers in line #{line_number}, please merge properly" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems