aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2021-12-03 10:56:25 +0100
committersonartech <sonartech@sonarsource.com>2021-12-03 20:03:32 +0000
commit1ffcc9a85c962e716b3c7e0dd73e0a955dd36c69 (patch)
tree345e052939548cd2fa8592755080e7acfe070eaf /sonar-scanner-engine/src/main/java/org/sonar
parent0c2ad3d5d708b3d34049767d5b37e7f5d7939325 (diff)
downloadsonarqube-1ffcc9a85c962e716b3c7e0dd73e0a955dd36c69.tar.gz
sonarqube-1ffcc9a85c962e716b3c7e0dd73e0a955dd36c69.zip
SONAR-15761 new API to identify Sensors processing files independently (#5091)
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/AbstractSensorWrapper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/AbstractSensorWrapper.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/AbstractSensorWrapper.java
index 21e5308d66e..2df1bec52c7 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/AbstractSensorWrapper.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/sensor/AbstractSensorWrapper.java
@@ -56,7 +56,7 @@ public abstract class AbstractSensorWrapper<G extends ProjectSensor> {
}
public void analyse() {
- boolean sensorIsRestricted = descriptor.onlyChangedFilesInPullRequest() && isPullRequest;
+ boolean sensorIsRestricted = descriptor.isProcessesFilesIndependently() && isPullRequest;
if (sensorIsRestricted) {
LOGGER.info("Sensor {} is restricted to changed files only", descriptor.name());
}