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

      codeowner_file_paths.each do |path|
        current_file_path = File.join(repo_path, path)
        return current_file_path if File.exist?(current_file_path)
      end

      raise "Unable to locate a code owners file located [#{codeowner_file_paths.join(',')}]"
    end
# Public: Returns a [String] for the code owner file if it exists; otherwise, raise exception
#
# @return [String] the path to the codeowners file; otherwise, raise exception if not exists
Returns a [String] for the code owner file if it exists; otherwise, raise exception
Returns a [ String ] for the code owner file if it exists ; otherwise raise exception
def codeowner_file
      return @codeowner_file if @codeowner_file
      codeowner_file_paths.each do |path|
        current_file_path = File.join(repo_path, path)
        return current_file_path if File.exist?(current_file_path)
      end
      raise "Unable to locate a code owners file located [#{codeowner_file_paths.join(',')}]"
    end
def codeowner_file return @codeowner_file if @codeowner_file codeowner_file_paths . each do | path | current_file_path = File . join ( repo_path , path ) return current_file_path if File . exist? ( current_file_path ) end raise "Unable to locate a code owners file located [#{codeowner_file_paths.join(',')}]" end
Public: Returns a [String] for the code owner file if it exists; otherwise, raise exception
Public : Returns a [ String ] for the code owner file if it exists ; otherwise raise exception
the path to the codeowners file; otherwise, raise exception if not exists
the path to the codeowners file ; otherwise raise exception if not exists
String