Sha256: 28beec5deeec8e35ca3ccd15e90f8c397e7bae94f562f98b53cd11d016e9d0c0

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

require_relative 'comment'

module Codeowners
  class Checker
    class Group
      # Define line type GroupEndComment which is used for defining the end
      # of a group.
      class GroupEndComment < Comment
        def self.match?(line)
          line.lstrip =~ /^#+ END/
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
codeowner_validator-0.4.0 lib/codeowners/checker/group/group_end_comment.rb
codeowners-checker-1.1.2 lib/codeowners/checker/group/group_end_comment.rb
codeowners-checker-1.1.1 lib/codeowners/checker/group/group_end_comment.rb
codeowners-checker-1.0.5 lib/codeowners/checker/group/group_end_comment.rb
codeowners-checker-1.0.4 lib/codeowners/checker/group/group_end_comment.rb