We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cfdba1 commit 161fd69Copy full SHA for 161fd69
sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorContext.java
@@ -221,6 +221,15 @@ public interface SensorContext {
221
*/
222
void markForPublishing(InputFile inputFile);
223
224
+ /**
225
+ * Marks a file as not having any data changed since the last analysis, including issues.
226
+ * The platform might perform optimizations based on this flag.
227
+ * The sensor is still expected to report all data for the file.
228
+ * @since 9.9
229
+ */
230
+ @Beta
231
+ void markAsUnchanged(InputFile inputFile);
232
+
233
/**
234
* Access object to write cache that will be stored and made available in a future analysis.
235
* If cache is disabled, the methods in the returned object will have no effect.
0 commit comments