Package com.lewisd.maven.lint

Examples of com.lewisd.maven.lint.RuleInvoker


        return outputReportList;
    }

    private void executeRules(ResultCollector resultCollector) throws MojoExecutionException {
        ModelFactory modelFactory = getContext().getBean(ModelFactory.class);
        RuleInvoker ruleInvoker = new RuleInvoker(getProject(), modelFactory);

        Set<Rule> rulesToRun = new RulesSelector(getRules()).selectRules(rules, onlyRunRules);

        for (Rule rule : rulesToRun) {
            executeRule(resultCollector, ruleInvoker, rule);
View Full Code Here


        ruleInvoker = getRuleInvokerWithPom(filename);
    }

    protected RuleInvoker getRuleInvokerWithPom(String filename) throws IOException, XmlPullParserException {
        MavenProject mavenProject = MavenProjectUtil.getMavenProjectFromPOM(filename);
        return new RuleInvoker(mavenProject, new CachingModelFactory());
    }
View Full Code Here

TOP

Related Classes of com.lewisd.maven.lint.RuleInvoker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.