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

Version Path
overcommit-0.64.1 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.64.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.63.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.62.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.61.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.60.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.59.1 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.59.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-jeygeethanmedia-0.58.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.58.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.57.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.56.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.55.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.54.1 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.54.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-jeygeethanmedia-0.53.1.2 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-jeygeethanmedia-0.53.1.1 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-jeygeethanmedia-0.53.1 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.53.0 lib/overcommit/hook/pre_commit/fix_me.rb
overcommit-0.52.1 lib/overcommit/hook/pre_commit/fix_me.rb