se.vandmo.textchecker.maven.RulesResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of text-checker-maven-plugin Show documentation
Show all versions of text-checker-maven-plugin Show documentation
Maven plugin that checks that text files adheres to certain rules.
package se.vandmo.textchecker.maven;
import static java.util.Arrays.asList;
import java.io.File;
import java.util.Collection;
import se.vandmo.textchecker.maven.rules.ConsistentLineSeparator;
import se.vandmo.textchecker.maven.rules.EndsWithLineSeparator;
import se.vandmo.textchecker.maven.rules.NoTabs;
import se.vandmo.textchecker.maven.rules.NoTrailingWhitespaceOnNonBlankLines;
import se.vandmo.textchecker.maven.rules.NoWhitespaceOnBlankLines;
public final class RulesResolver {
public Collection getRulesFor(File file) {
return asList(
new NoTabs(),
new NoTrailingWhitespaceOnNonBlankLines(),
new NoWhitespaceOnBlankLines(),
new ConsistentLineSeparator(),
new EndsWithLineSeparator());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy