diff options
author | Michal Duda <michal.duda@sonarsource.com> | 2020-09-17 10:50:14 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-09-17 20:07:12 +0000 |
commit | 2545e06845915284dfcacc23ed857a5f0cc2e5ab (patch) | |
tree | 970d4381fa49ff0423ce86bdb5e2aa4a308256a5 /sonar-scanner-protocol | |
parent | ecadc3d27df9e6ba04bfb1ce6c8c7d3e373de90b (diff) | |
download | sonarqube-2545e06845915284dfcacc23ed857a5f0cc2e5ab.tar.gz sonarqube-2545e06845915284dfcacc23ed857a5f0cc2e5ab.zip |
SONAR-13867 revert
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r-- | sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/viewer/ScannerReportViewerApp.java | 33 | ||||
-rw-r--r-- | sonar-scanner-protocol/src/main/protobuf/scanner_report.proto | 2 |
2 files changed, 3 insertions, 32 deletions
diff --git a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/viewer/ScannerReportViewerApp.java b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/viewer/ScannerReportViewerApp.java index 20b8f682017..7349fa688f8 100644 --- a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/viewer/ScannerReportViewerApp.java +++ b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/viewer/ScannerReportViewerApp.java @@ -32,12 +32,9 @@ import java.util.Map; import java.util.Scanner; import javax.annotation.CheckForNull; import javax.swing.*; -import javax.swing.UIManager.LookAndFeelInfo; -import javax.swing.event.TreeSelectionEvent; -import javax.swing.event.TreeSelectionListener; -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.DefaultTreeModel; -import javax.swing.tree.TreeSelectionModel; +import javax.swing.UIManager.*; +import javax.swing.event.*; +import javax.swing.tree.*; import org.apache.commons.io.FileUtils; import org.apache.commons.lang.StringUtils; import org.sonar.core.util.CloseableIterator; @@ -97,8 +94,6 @@ public class ScannerReportViewerApp { private JEditorPane cpdTextBlocksEditor; private JScrollPane significantCodeTab; private JEditorPane significantCodeEditor; - private JScrollPane metadataTab; - private JEditorPane metadataEditor; /** * Create the application. @@ -192,7 +187,6 @@ public class ScannerReportViewerApp { updateAdHocRules(); updateQualityProfiles(); updatePlugins(); - updateMetadata(); } private void loadComponents() { @@ -354,21 +348,6 @@ public class ScannerReportViewerApp { } } - private void updateMetadata() { - metadataEditor.setText(""); - - StringBuilder builder = new StringBuilder(); - Metadata data = reader.readMetadata(); - builder.append("Project key: ").append(data.getProjectKey()).append("\n"); - builder.append("Project version: ").append(data.getProjectVersion()).append("\n"); - builder.append("Scm revision ID: ").append(data.getScmRevisionId()).append("\n"); - if (data.getNotAnalyzedFilesByLanguageCount() > 0) { - builder.append("Not analyzed files in project:").append("\n"); - data.getNotAnalyzedFilesByLanguageMap().forEach((key, value) -> builder.append(" ").append(key).append(": ").append(value).append("\n")); - } - metadataEditor.setText(builder.toString()); - } - private void updateActiveRules() { activeRuleEditor.setText(""); @@ -609,12 +588,6 @@ public class ScannerReportViewerApp { significantCodeEditor = new JEditorPane(); significantCodeTab.setViewportView(significantCodeEditor); - metadataTab = new JScrollPane(); - tabbedPane.addTab("Metadata", null, metadataTab, null); - - metadataEditor = new JEditorPane(); - metadataTab.setViewportView(metadataEditor); - treeScrollPane = new JScrollPane(); treeScrollPane.setPreferredSize(new Dimension(200, 400)); splitPane.setLeftComponent(treeScrollPane); diff --git a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto index 3e3a1f80351..b984bf7abbb 100644 --- a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto +++ b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto @@ -58,8 +58,6 @@ message Metadata { int64 forkDate = 19; - map<string, int32> not_analyzed_files_by_language = 20; - message QProfile { string key = 1; string name = 2; |