
com.github.rigoford.sonar.java.rules.JavaRulesCheckRegistrar Maven / Gradle / Ivy
The newest version!
package com.github.rigoford.sonar.java.rules;
import org.sonar.plugins.java.api.CheckRegistrar;
/**
* Provide the "checks" (implementations of rules) classes that are going to be executed during
* source code analysis.
*
* This class is a batch extension by implementing the {@link org.sonar.plugins.java.api.CheckRegistrar}
* interface.
*/
public class JavaRulesCheckRegistrar implements CheckRegistrar {
/**
* Register the classes that will be used to instantiate checks during analysis.
*/
@Override
public void register(RegistrarContext registrarContext) {
// Call to registerClassesForRepository to associate the classes with the correct repository key
registrarContext.registerClassesForRepository(
JavaRulesDefinition.REPOSITORY_KEY,
JavaRulesList.getJavaChecks(),
JavaRulesList.getJavaTestChecks());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy