Sha256: 33ab1b387f79b07d0d6a89c6b929fee3722cce3ff6b834b89f5a8382db74c5fc
Contents?: true
Size: 448 Bytes
Versions: 23
Compression:
Stored size: 448 Bytes
Contents
require 'pre-commit/checks/grep' module PreCommit module Checks class BeforeAll < Grep def files_filter(staged_files) staged_files.grep(/\.rb$/) end def extra_grep %w{-v //} end def message "before(:all) found:" end def pattern "before.*:all" end def self.description "Find ruby files with 'before :all' pattern" end end end end
Version data entries
23 entries across 23 versions & 1 rubygems