Skip to content

Commit

Permalink
second try
Browse files Browse the repository at this point in the history
  • Loading branch information
guwirth committed Nov 27, 2017
1 parent 77023c7 commit f6a4a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions sonar-c-plugin/src/main/java/org/sonar/plugins/c/CPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.sonar.api.platform.ServerFileSystem;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.server.rule.RulesDefinitionXmlLoader;
import org.sonar.cxx.CxxLanguage;
import org.sonar.cxx.sensors.clangtidy.CxxClangTidyRuleRepository;
import org.sonar.cxx.sensors.clangtidy.CxxClangTidySensor;
import org.sonar.cxx.sensors.clangsa.CxxClangSARuleRepository;
Expand Down Expand Up @@ -616,11 +615,11 @@ public CxxSquidSensorImpl(Configuration settings,
super(new CLanguage(settings), fileLinesContextFactory, checkFactory);
}

public CxxSquidSensorImpl(CxxLanguage language,
public CxxSquidSensorImpl(Configuration settings,
FileLinesContextFactory fileLinesContextFactory,
CheckFactory checkFactory,
@Nullable CustomCxxRulesDefinition[] customRulesDefinition) {
super(language, fileLinesContextFactory, checkFactory, customRulesDefinition);
super(new CLanguage(settings), fileLinesContextFactory, checkFactory, customRulesDefinition);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@

import com.google.common.collect.ImmutableList;
import javax.annotation.Nullable;
import org.sonar.cxx.CxxLanguage;
import org.sonar.cxx.sensors.squid.CustomCxxRulesDefinition;

/**
Expand Down Expand Up @@ -645,11 +644,11 @@ public CxxSquidSensorImpl(Configuration settings,
super(new CppLanguage(settings), fileLinesContextFactory, checkFactory);
}

public CxxSquidSensorImpl(CxxLanguage language,
public CxxSquidSensorImpl(Configuration settings,
FileLinesContextFactory fileLinesContextFactory,
CheckFactory checkFactory,
@Nullable CustomCxxRulesDefinition[] customRulesDefinition) {
super(language, fileLinesContextFactory, checkFactory, customRulesDefinition);
super(new CppLanguage(settings), fileLinesContextFactory, checkFactory, customRulesDefinition);
}
}

Expand Down

0 comments on commit f6a4a24

Please sign in to comment.