Class: PreCommit::PryCheck
- Inherits:
-
Object
- Object
- PreCommit::PryCheck
- Defined in:
- lib/pre-commit/checks/pry_check.rb
Class Method Summary collapse
Class Method Details
.call(staged_files) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/pre-commit/checks/pry_check.rb', line 3 def self.call(staged_files) return if staged_files.empty? result = `#{Utils.grep} binding.pry #{staged_files.join(" ")}`.strip return unless $?.success? "binding.pry found:\n#{result}" end |