Sha256: 458f1e45931855e1a166c42560801ef81c313d8276c8c857160978d7cbf4a5a2

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

require_relative 'comment'

module Codeowners
  class Checker
    class Group
      # Define line type GroupBeginComment which is used for defining the beggining
      # of a group.
      class GroupBeginComment < Comment
        def self.match?(line)
          line.lstrip =~ /^#+ BEGIN/
        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_begin_comment.rb
codeowners-checker-1.1.2 lib/codeowners/checker/group/group_begin_comment.rb
codeowners-checker-1.1.1 lib/codeowners/checker/group/group_begin_comment.rb
codeowners-checker-1.0.5 lib/codeowners/checker/group/group_begin_comment.rb
codeowners-checker-1.0.4 lib/codeowners/checker/group/group_begin_comment.rb