lib/codeowner_validator/code_owners.rb
def list
      return @list if @list

      @list =
        content.each_with_index.map do |line, index|
          l = build_line(line)
          l.line_number = index + 1
          l
        end

      @list.compact!

      @list
    end
# returns an array of built lines
returns an array of built lines
returns an array of built lines
def list
      return @list if @list
      @list =
        content.each_with_index.map do |line, index|
          l = build_line(line)
          l.line_number = index + 1
          l
        end
      @list.compact!
      @list
    end
def list return @list if @list @list = content . each_with_index . map do | line , index | l = build_line ( line ) l . line_number = index + 1 l end @list . compact! @list end
returns an array of built lines
returns an array of built lines