jish/pre-commit

View on GitHub
lib/plugins/pre_commit/checks/merge_conflict.rb

Summary

Maintainability
A
0 mins
Test Coverage
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