Class: Codeqa::Checkers::CheckConflict

Inherits:
PatternChecker show all
Defined in:
lib/codeqa/checkers/check_conflict.rb

Instance Attribute Summary

Attributes inherited from Codeqa::Checker

#errors, #sourcefile

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PatternChecker

available?, #check

Methods inherited from Codeqa::Checker

available?, #initialize

Constructor Details

This class inherits a constructor from Codeqa::Checker

Class Method Details

.check?(sourcefile) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/codeqa/checkers/check_conflict.rb', line 14

def self.check?(sourcefile)
  sourcefile.text?
end

Instance Method Details

#hintObject



10
11
12
# File 'lib/codeqa/checkers/check_conflict.rb', line 10

def hint
  'Remove the lines which are beginning with <<<<<<< or >>>>>>> or =======.'
end

#nameObject



6
7
8
# File 'lib/codeqa/checkers/check_conflict.rb', line 6

def name
  'conflict'
end