Skip to content

Commit

Permalink
Registering new SquidSensors only for C++ language.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlemes committed Feb 1, 2018
1 parent d9f2a2f commit 1d61c38
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d61c38

Please sign in to comment.