Class: PreCommit::Checks::Pry
- Inherits:
-
Grep
show all
- Defined in:
- lib/plugins/pre_commit/checks/pry.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/pry.rb', line 15
def self.description
"Finds files with 'binding.pry'."
end
|
Instance Method Details
#message ⇒ Object
7
8
9
|
# File 'lib/plugins/pre_commit/checks/pry.rb', line 7
def message
"binding.pry found:"
end
|
#pattern ⇒ Object
11
12
13
|
# File 'lib/plugins/pre_commit/checks/pry.rb', line 11
def pattern
"binding\.(remote_)?pry"
end
|