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();