Class: PreCommit::Checks::MergeConflict
- Inherits:
-
Grep
show all
- Defined in:
- lib/plugins/pre_commit/checks/merge_conflict.rb
Instance Attribute Summary
Attributes inherited from Plugin
#config, #pluginator
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Grep
#call, #extra_grep, #files_filter
Methods inherited from Plugin
#initialize, #name
Class Method Details
.description ⇒ Object
15
16
17
|
# File 'lib/plugins/pre_commit/checks/merge_conflict.rb', line 15
def self.description
"Finds files with unresolved merge conflicts."
end
|
Instance Method Details
#message ⇒ Object
7
8
9
|
# File 'lib/plugins/pre_commit/checks/merge_conflict.rb', line 7
def message
"detected a merge conflict"
end
|
#pattern ⇒ Object
11
12
13
|
# File 'lib/plugins/pre_commit/checks/merge_conflict.rb', line 11
def pattern
"<<<<<<<"
end
|