Sha256: 549c7ec8305dec84a096bca9ba3456a29c4ff390f3c616ab8a1d8aacc65d249f

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

module PreCommit
  class PryCheck
    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pre-commit-0.11.0 lib/pre-commit/checks/pry_check.rb
pre-commit-0.10.0 lib/pre-commit/checks/pry_check.rb
pre-commit-0.9.2 lib/pre-commit/checks/pry_check.rb
pre-commit-0.9.1 lib/pre-commit/checks/pry_check.rb
pre-commit-0.9.0 lib/pre-commit/checks/pry_check.rb