Skip to content

Commit 161fd69

Browse files
committed
PLUGINAPI-20 Sensors can mark a file as unchanged
1 parent 9cfdba1 commit 161fd69

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorContext.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ public interface SensorContext {
221221
*/
222222
void markForPublishing(InputFile inputFile);
223223

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+
224233
/**
225234
* Access object to write cache that will be stored and made available in a future analysis.
226235
* If cache is disabled, the methods in the returned object will have no effect.

0 commit comments

Comments
 (0)