File tree Expand file tree Collapse file tree
plugin-api/src/main/java/org/sonar/api/batch/sensor/issue Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 13.1
4+ * Introduce support for internal tags on issues:
5+ * Introduce ` org.sonar.api.batch.sensor.issue.Issue.internalTags() `
6+ * Introduce ` org.sonar.api.batch.sensor.issue.NewIssue.addInternalTag(String tag) `
7+ * Introduce ` org.sonar.api.batch.sensor.issue.NewIssue.addInternalTags(Collection<String> tags) `
8+ * Introduce ` org.sonar.api.batch.sensor.issue.NewIssue.setInternalTags(@Nullable Collection<String> tags) `
9+
310## 13.0
411* Remove deprecated complexity metrics:
512 * ` org.sonar.api.measures.CoreMetrics.FILE_COMPLEXITY ` .
Original file line number Diff line number Diff line change 2323import java .util .Map ;
2424import java .util .Optional ;
2525import javax .annotation .CheckForNull ;
26+ import org .sonar .api .Beta ;
2627import org .sonar .api .batch .rule .Severity ;
2728import org .sonar .api .batch .sensor .Sensor ;
2829import org .sonar .api .batch .sensor .issue .NewIssue .FlowType ;
@@ -112,4 +113,13 @@ interface Flow {
112113 */
113114 @ CheckForNull
114115 List <String > codeVariants ();
116+
117+ /**
118+ * Technical tags for the issue - for internal use only.
119+ * This API is experimental and can be changed or dropped at any time.
120+ *
121+ * @since 13.1
122+ */
123+ @ Beta
124+ List <String > internalTags ();
115125}
Original file line number Diff line number Diff line change 1919 */
2020package org .sonar .api .batch .sensor .issue ;
2121
22+ import java .util .Collection ;
2223import javax .annotation .Nullable ;
2324import org .sonar .api .batch .rule .Severity ;
2425import org .sonar .api .batch .sensor .Sensor ;
@@ -149,4 +150,29 @@ enum FlowType {
149150 */
150151 NewIssue setCodeVariants (@ Nullable Iterable <String > codeVariants );
151152
153+ /**
154+ * Register an internal tag for this issue.
155+ *
156+ * @param tag a String tag
157+ * @since 13.1
158+ */
159+ NewIssue addInternalTag (String tag );
160+
161+ /**
162+ * Register a collection of internal tags for this issue.
163+ *
164+ * @param tag a Collection of String tags
165+ * @since 13.1
166+ */
167+ NewIssue addInternalTags (Collection <String > tags );
168+
169+ /**
170+ * Set the internal tags for this issue.
171+ * This will override any previously set internal tags.
172+ *
173+ * @param tags a Collection of String tags
174+ * @since 13.1
175+ */
176+ NewIssue setInternalTags (@ Nullable Collection <String > tags );
177+
152178}
You can’t perform that action at this time.
0 commit comments