Sha256: 01d32114aa6ce86f2baea89ec105d702e2160dfb1bade952d9ac19ddac742386
Contents?: true
Size: 414 Bytes
Versions: 28
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true module Overcommit::Hook::PreCommit # Check for "token" strings class FixMe < Base def run keywords = config['keywords'] result = execute(command, args: [keywords.join('|')] + applicable_files) extract_messages( result.stdout.split("\n"), /^(?<file>(?:\w:)?[^:]+):(?<line>\d+)/, lambda { |_type| :warning } ) end end end
Version data entries
28 entries across 28 versions & 2 rubygems