Search in sources :

Example 1 with Rule

use of com.buschmais.jqassistant.core.rule.api.configuration.Rule in project jqa-commandline-tool by jQAssistant.

the class EffectiveRulesTask method run.

@Override
public void run(CliConfiguration configuration) throws CliExecutionException {
    try {
        Analyze analyze = configuration.analyze();
        Rule rule = analyze.rule();
        RuleSet availableRules = getAvailableRules(rule);
        ruleHelper.printRuleSet(availableRules, getRuleSelection(availableRules, analyze), rule);
    } catch (RuleException e) {
        throw new CliExecutionException("Cannot print rules.", e);
    }
}
Also used : RuleSet(com.buschmais.jqassistant.core.rule.api.model.RuleSet) Rule(com.buschmais.jqassistant.core.rule.api.configuration.Rule) CliExecutionException(com.buschmais.jqassistant.commandline.CliExecutionException) RuleException(com.buschmais.jqassistant.core.rule.api.model.RuleException) Analyze(com.buschmais.jqassistant.core.analysis.api.configuration.Analyze)

Aggregations

CliExecutionException (com.buschmais.jqassistant.commandline.CliExecutionException)1 Analyze (com.buschmais.jqassistant.core.analysis.api.configuration.Analyze)1 Rule (com.buschmais.jqassistant.core.rule.api.configuration.Rule)1 RuleException (com.buschmais.jqassistant.core.rule.api.model.RuleException)1 RuleSet (com.buschmais.jqassistant.core.rule.api.model.RuleSet)1