lib/codeowner_validator/code_owners.rb
# Public: Return a list of files from the codeowners file that are noted but do not exist
#
# @return [Array] of <Codeowners::Checker::Group::UnrecognizedLine>s or <Codeowners::Checker::Group::Pattern>s
Return a list of files from the codeowners file that are noted but do not exist
Return a list of files from the codeowners file that are noted but do not exist
def invalid_reference_lines
      list.select do |line|
        next unless line.pattern? || line.is_a?(Codeowners::Checker::Group::UnrecognizedLine)
        filename = line.pattern? ? line.pattern : line.to_file
        File.exist?(File.join(repo_path, filename)) == false
      end
    end
def invalid_reference_lines list . select do | line | next unless line . pattern? || line . is_a? ( Codeowners :: Checker :: Group :: UnrecognizedLine ) filename = line . pattern? ? line . pattern : line . to_file File . exist? ( File . join ( repo_path , filename ) ) == false end end
Public: Return a list of files from the codeowners file that are noted but do not exist
Public : Return a list of files from the codeowners file that are noted but do not exist
of s or s
of s or s
Array