Sha256: b3975c15994a78c80769125c8d92606cd712c9e0d288801f53229d45ef7d6e5e
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
require 'pre-commit/checks/grep' module PreCommit module Checks class GemfilePath < Grep def files_filter(staged_files) staged_files.grep(/^Gemfile$/) end def message "local path found in Gemfile:\n" end def pattern "'path:|:path\\s*=>'" end def extra_grep " | grep -v '#'" end def self.description "Checks 'Gemfile' for local paths." end end end end
Version data entries
3 entries across 3 versions & 1 rubygems