Sha256: e60aaff07ac410322006222b71ecc2e1648167fdf2888242bd67569f5e9be0be
Contents?: true
Size: 458 Bytes
Versions: 23
Compression:
Stored size: 458 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:" end def pattern "path:|:path\\s*=>" end def extra_grep %w{-v #} end def self.description "Checks 'Gemfile' for local paths." end end end end
Version data entries
23 entries across 23 versions & 1 rubygems