Sha256: 554238368d80fc4d7fc9e9f29e29db8c6f0e539a41c83eb3bb543c40ad14de9e
Contents?: true
Size: 413 Bytes
Versions: 8
Compression:
Stored size: 413 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 self.description "Checks 'Gemfile' for local paths." end end end end
Version data entries
8 entries across 8 versions & 1 rubygems