use of org.sonar.scanner.protocol.output.ScannerReport.Metadata.QProfile in project sonarqube by SonarSource.
the class LoadReportAnalysisMetadataHolderStep method loadQualityProfiles.
private void loadQualityProfiles(ScannerReport.Metadata reportMetadata) {
analysisMetadata.setQProfilesByLanguage(reportMetadata.getQprofilesPerLanguageMap().values().stream().collect(toMap(QProfile::getLanguage, qp -> new QualityProfile(qp.getKey(), qp.getName(), qp.getLanguage(), new Date(qp.getRulesUpdatedAt())))));
analysisMetadata.setScannerPluginsByKey(reportMetadata.getPluginsByKeyMap().values().stream().collect(toMap(Plugin::getKey, p -> new ScannerPlugin(p.getKey(), getBasePluginKey(p), p.getUpdatedAt()))));
}
Aggregations