diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2021-10-08 13:33:26 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-10-13 20:03:34 +0000 |
commit | 822c74e7379b8354990e3a3605793d85b1803130 (patch) | |
tree | 169ede8e809438f5c10ce1c00ffc0d42fcb1c81a /sonar-plugin-api/src | |
parent | 6a8bc0c123bf5dd10f4eb73a0bcea47288269aa7 (diff) | |
download | sonarqube-822c74e7379b8354990e3a3605793d85b1803130.tar.gz sonarqube-822c74e7379b8354990e3a3605793d85b1803130.zip |
SONAR-15487 add quickfix flag in plugin-api
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. |