lib/codeowner_validator/lists/whitelist.rb
# search for an actual file within the repository named 'CODEOWNERS_WHITELIST'
search for an actual file within the repository named 'CODEOWNERS_WHITELIST'
search for an actual file within the repository named ' CODEOWNERS_WHITELIST '
def whitelist_file
        return unless repo_path
        return @whitelist_file if @whitelist_file
        whitelist_file_paths.each do |path|
          current_file_path = File.join(repo_path, path)
          return current_file_path if File.exist?(current_file_path)
        end
        nil
      end
def whitelist_file return unless repo_path return @whitelist_file if @whitelist_file whitelist_file_paths . each do | path | current_file_path = File . join ( repo_path , path ) return current_file_path if File . exist? ( current_file_path ) end nil end
search for an actual file within the repository named 'CODEOWNERS_WHITELIST'
search for an actual file within the repository named ' CODEOWNERS_WHITELIST '
# if no repo, there can be no discovery of a file