lib/codeowner_validator/lists/whitelist.rb
# search for the .gitignore file if provided a repo path
search for the .gitignore file if provided a repo path
search for the . gitignore file if provided a repo path
def git_ignore_file
        return unless repo_path
        return @git_ignore_file if @git_ignore_file
        file = File.join(repo_path, '.gitignore')
        @git_ignore_file = file if File.exist?(file)
      end
def git_ignore_file return unless repo_path return @git_ignore_file if @git_ignore_file file = File . join ( repo_path , '.gitignore' ) @git_ignore_file = file if File . exist? ( file ) end
search for the .gitignore file if provided a repo path
search for the . gitignore file if provided a repo path
# if no repo, there can be no discovery of a file