Package com.buschmais.jqassistant.core.report.schema.v1

Examples of com.buschmais.jqassistant.core.report.schema.v1.JqassistantReport


                            for (ColumnType column : rowType.getColumn()) {
                                String name = column.getName();
                                String value = column.getValue();
                                // if a language element element is found use it
                                // as a resource for creating an issue
                                ElementType languageElement = column.getElement();
                                if (languageElement != null) {
                                    LanguageResourceResolver resourceResolver = languageResourceResolvers.get(languageElement.getLanguage());
                                    if (resourceResolver != null) {
                                        String element = languageElement.getValue();
                                        resource = resourceResolver.resolve(element, value);
                                    }
                                }
                                SourceType source = column.getSource();
                                lineNumber = source.getLine();
View Full Code Here


    @Override
    public void analyse(Project project, SensorContext sensorContext) {
        File reportFile = getReportFile();
        if (reportFile != null) {
            JqassistantReport report = readReport(reportFile);
            evaluateReport(project, sensorContext, report);
        }
    }
View Full Code Here

                String id = ruleType.getId();
                ActiveRule activeRule = rules.get(id);
                if (activeRule == null) {
                    LOGGER.warn("Cannot resolve activeRule for id '{}'.", id);
                } else {
                    ResultType result = ruleType.getResult();
                    boolean hasRows = result != null && result.getRows().getCount() > 0;
                    if (ruleType instanceof ConceptType && createEmptyConceptIssue && !hasRows) {
                        createIssue(project, null, "The concept did not return a result.", activeRule, sensorContext);
                    } else if (ruleType instanceof ConstraintType && hasRows) {
                        for (RowType rowType : result.getRows().getRow()) {
                            StringBuilder message = new StringBuilder();
                            Resource<?> resource = null;
                            Integer lineNumber = null;
                            for (ColumnType column : rowType.getColumn()) {
                                String name = column.getName();
View Full Code Here

                                    if (resourceResolver != null) {
                                        String element = languageElement.getValue();
                                        resource = resourceResolver.resolve(element, value);
                                    }
                                }
                                SourceType source = column.getSource();
                                lineNumber = source.getLine();
                                if (message.length() > 0) {
                                    message.append(", ");
                                }
                                message.append(name);
                                message.append('=');
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.report.schema.v1.JqassistantReport

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.