diff --git a/cxx-sensors/src/main/java/org/sonar/cxx/sensors/squid/CxxSquidSensor.java b/cxx-sensors/src/main/java/org/sonar/cxx/sensors/squid/CxxSquidSensor.java index 3ba786ad66..f89f05bb43 100644 --- a/cxx-sensors/src/main/java/org/sonar/cxx/sensors/squid/CxxSquidSensor.java +++ b/cxx-sensors/src/main/java/org/sonar/cxx/sensors/squid/CxxSquidSensor.java @@ -127,8 +127,10 @@ public CxxSquidSensor(CxxLanguage language, } protected void registerSquidSensors(){ - this.squidSensors.add(new CxxFunctionComplexitySquidSensor(this.language)); - this.squidSensors.add(new CxxFunctionSizeSquidSensor(this.language)); + if (this.language.getKey() == "c++"){ + this.squidSensors.add(new CxxFunctionComplexitySquidSensor(this.language)); + this.squidSensors.add(new CxxFunctionSizeSquidSensor(this.language)); + } } @Override