sonarReportContent = Files.toString(new File(pathToSonarReport), Charsets.UTF_8);
} catch (IOException e) {
sonarConsole.info(Throwables.getStackTraceAsString(e));
return;
}
final SonarReport sonarReport = SonarReport.fromJson(sonarReportContent);
final int issuesCount = sonarReport != null && sonarReport.getIssues() != null ? sonarReport.getIssues().size() : 0;
sonarConsole.info(String.format("Found %d issues in the SonarQube report", issuesCount));
if (enrichedSettings.settings.getResources().isEmpty()) {
createIndexFrom(sonarReport, new Resource());
} else {