diff options
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorDescriptor.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorDescriptor.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorDescriptor.java index 0117afae923..72e8ec2547c 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorDescriptor.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/SensorDescriptor.java @@ -83,4 +83,12 @@ public interface SensorDescriptor { * @since 6.5 */ SensorDescriptor onlyWhenConfiguration(Predicate<Configuration> predicate); + + /** + * Advertise that this sensor process each file independently. It means executing the sensor twice with FileSystem=[FileA] and FileSystem=[FileB] will produce the same result + * than executing the sensor only once with FileSystem=[FileA,FileB]. + * This will allow the platform to optimize sensor execution. + * @since 9.3 + */ + SensorDescriptor processesFilesIndependently(); } |