Sha256: 7f7af73bd941347ac90d5234cf97d64d5e949c1505bcc1f42af4f06d1b55949e
Contents?: true
Size: 356 Bytes
Versions: 29
Compression:
Stored size: 356 Bytes
Contents
module Overcommit::Hook::PreCommit # Checks for local paths in files and issues a warning class LocalPathsInGemfile < Base def run result = execute(command, args: applicable_files) unless result.stdout.empty? return :warn, "Avoid pointing to local paths in Gemfiles:\n#{result.stdout}" end :pass end end end
Version data entries
29 entries across 27 versions & 2 rubygems