Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 414 Bytes
# 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
You can’t perform that action at this time.