Sha256: 45c83f218697f9ebc15250501c31cf7828718a7a7db17d2ccb121138f0cd087a

Contents?: true

Size: 322 Bytes

Versions: 23

Compression:

Stored size: 322 Bytes

Contents

require 'pre-commit/checks/grep'

module PreCommit
  module Checks
    class MergeConflict < Grep

      def message
        "detected a merge conflict"
      end

      def pattern
        "<<<<<<<"
      end

      def self.description
        "Finds files with unresolved merge conflicts."
      end

    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
pre-commit-0.22.0 lib/plugins/pre_commit/checks/merge_conflict.rb
pre-commit-0.21.0 lib/plugins/pre_commit/checks/merge_conflict.rb
pre-commit-0.20.0 lib/plugins/pre_commit/checks/merge_conflict.rb