Sha256: 7d61ba702c0effa158c9e8e90cb2f47799dc475a3a84475b671d071fa777515e

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 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.start_with?(/^#+ BEGIN/)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
codeowners-checker-1.0.3 lib/codeowners/checker/group/group_begin_comment.rb
codeowners-checker-1.0.2 lib/codeowners/checker/group/group_begin_comment.rb
codeowners-checker-1.0.1 lib/codeowners/checker/group/group_begin_comment.rb
codeowners-checker-1.0.0 lib/codeowners/checker/group/group_begin_comment.rb