package de.retest.recheck.ignore;

import java.nio.file.Path;
import java.util.Optional;

import de.retest.recheck.configuration.ProjectConfigurationUtil;

public class RecheckIgnoreUtil {

	public static final String RECHECK_IGNORE = "recheck.ignore";

	private RecheckIgnoreUtil() {

	}

	public static Optional<Path> getIgnoreFile() {
		final Path projectRoot = ProjectConfigurationUtil.findProjectConfiguration();
		final Path ignoreFile = projectRoot.resolve( RECHECK_IGNORE );

		if ( ignoreFile.toFile().exists() ) {
			return Optional.of( ignoreFile );
		}

		return Optional.empty();
	}
}

Add helper to find project ignore file
Add helper to find project ignore file
