diff options
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/Issue.java | 6 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/NewIssue.java | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/Issue.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/Issue.java index 839f44f7fdb..a8c39285311 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/Issue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/Issue.java @@ -63,4 +63,10 @@ public interface Issue extends IIssue { */ @Override List<Flow> flows(); + + /** + * Is there a QuickFix available in SonarLint for this issue + * @since 9.2 + */ + boolean isQuickFixAvailable(); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/NewIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/NewIssue.java index 7f065925220..3655444dc02 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/NewIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/NewIssue.java @@ -61,6 +61,12 @@ public interface NewIssue { NewIssue addLocation(NewIssueLocation secondaryLocation); /** + * Register if a QuickFix would be available on SonarLint for this issue. + * @since 9.2 + */ + NewIssue setQuickFixAvailable(boolean quickFixAvailable); + + /** * Register a flow for this issue. A flow is an ordered list of issue locations that help to understand the issue. * It should be a <b>path that backtracks the issue from its primary location to the start of the flow</b>. * Several flows can be registered. |