diff --git a/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/ScannerManager.java b/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/ScannerManager.java index a5bc0bb0..96abffe3 100644 --- a/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/ScannerManager.java +++ b/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/ScannerManager.java @@ -56,6 +56,10 @@ public IStatistics getStatistics() { INode::getKind, Collectors.counting()))); } + public boolean hasResults() { + return !this.getAggregatedNodes().isEmpty(); + } + @Nonnull private List getAggregatedNodes() { List nodes = new ArrayList<>();