pl.touk.sputnik.processor.checkstyle.CheckstyleReviewProcessorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sputnik Show documentation
Show all versions of sputnik Show documentation
Static code review for your Gerrit and Stash patchsets. Runs Checkstyle, PMD and SpotBugs for you!
package pl.touk.sputnik.processor.checkstyle;
import pl.touk.sputnik.configuration.Configuration;
import pl.touk.sputnik.configuration.GeneralOption;
import pl.touk.sputnik.processor.ReviewProcessorFactory;
public class CheckstyleReviewProcessorFactory implements ReviewProcessorFactory {
@Override
public boolean isEnabled(Configuration configuration) {
return Boolean.valueOf(configuration.getProperty(GeneralOption.CHECKSTYLE_ENABLED));
}
@Override
public CheckstyleProcessor create(Configuration configuration) {
return new CheckstyleProcessor(configuration);
}
}