All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.sputnik.processor.checkstyle.CheckstyleReviewProcessorFactory Maven / Gradle / Ivy

Go to download

Static code review for your Gerrit and Stash patchsets. Runs Checkstyle, PMD and SpotBugs for you!

There is a newer version: 2.8.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy