aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-09-18 16:11:11 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-09-18 16:11:37 +0200
commit66041bc94f8c7c8e0a2ab0aafe3895e3b1b98df1 (patch)
tree4a6506e9d476515f568d117b61b419178d10d5f0 /sonar-plugin-api
parenta4479336b9c54c651b95c055d3020098c2e49a3e (diff)
downloadsonarqube-66041bc94f8c7c8e0a2ab0aafe3895e3b1b98df1.tar.gz
sonarqube-66041bc94f8c7c8e0a2ab0aafe3895e3b1b98df1.zip
SONAR-4689 Batch API to get issues of the current module
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/ModuleIssues.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/ModuleIssues.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/ModuleIssues.java
new file mode 100644
index 00000000000..2f1a974f51c
--- /dev/null
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/ModuleIssues.java
@@ -0,0 +1,41 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2013 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.api.issue;
+
+import org.sonar.api.BatchComponent;
+
+/**
+ * Used by batch components to get the issues of the current module. It does not allow
+ * to get issues of all project modules.
+ *
+ * @since 4.0
+ */
+public interface ModuleIssues extends BatchComponent {
+
+ /**
+ * All the unresolved issues of the current module, including the issues reported by end-users.
+ */
+ Iterable<Issue> issues();
+
+ /**
+ * All the issues of this module that have been marked as resolved during this scan
+ */
+ Iterable<Issue> resolvedIssues();
+}