
fr.sii.sonar.web.frontend.js.duplication.JsDuplicationSensor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-frontend-js Show documentation
Show all versions of sonar-web-frontend-js Show documentation
Consume reports generated by jshint for code quality. Also consume reports for code duplication (either simian or cpd). Consumes the unit/integration tests reports (generated by Jasmin) coverage report (lcov generated by Istanbul). The information generated by reports are added in Sonar
package fr.sii.sonar.web.frontend.js.duplication;
import fr.sii.sonar.duplication.cpd.provider.CpdProvider;
import fr.sii.sonar.duplication.simian.provider.SimianProvider;
import fr.sii.sonar.report.core.common.PluginDependencies;
import fr.sii.sonar.report.core.common.ReportSensor;
import fr.sii.sonar.report.core.common.factory.FallbackProviderFactory;
import fr.sii.sonar.report.core.duplication.domain.DuplicationReport;
import fr.sii.sonar.report.core.duplication.factory.DuplicationSaverFactory;
/**
* Sensor specific to code duplication that loads duplication report (either CPD or Simian)
*
* @author Aurélien Baudet
*
*/
public class JsDuplicationSensor extends ReportSensor {
@SuppressWarnings({ "unchecked" })
public JsDuplicationSensor(JsDuplicationConstants constants, PluginDependencies pluginDependencies) {
super(constants, pluginDependencies, new FallbackProviderFactory(CpdProvider.class, SimianProvider.class), new DuplicationSaverFactory());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy