com.buschmais.jqassistant.commandline.task.AvailableRulesTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commandline Show documentation
Show all versions of commandline Show documentation
jQAssistant Commandline distribution to run jQAssistant
as standalone tool.
package com.buschmais.jqassistant.commandline.task;
import com.buschmais.jqassistant.commandline.CliExecutionException;
import com.buschmais.jqassistant.core.analysis.api.AnalysisException;
import com.buschmais.jqassistant.core.analysis.api.rule.RuleSet;
import com.buschmais.jqassistant.core.store.api.Store;
public class AvailableRulesTask extends AbstractAnalyzeTask {
@Override
protected void executeTask(Store store) throws CliExecutionException {
RuleSet availableRules = getAvailableRules();
try {
ruleHelper.printRuleSet(availableRules);
} catch (AnalysisException e) {
throw new CliExecutionException("Cannot print available rules.", e);
}
}
}