
de.jball.sonar.hybris.java.HybrisJavaFileCheckRegistrar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-hybris Show documentation
Show all versions of sonar-hybris Show documentation
SonarQube Rules for Hybris
package de.jball.sonar.hybris.java;
import org.sonar.plugins.java.api.CheckRegistrar;
import org.sonar.plugins.java.api.JavaCheck;
import org.sonarsource.api.sonarlint.SonarLintSide;
import java.util.List;
/**
* Provide the "checks" (implementations of rules) classes that are going be executed during
* source code analysis.
*
* This class is a batch extension by implementing the {@link org.sonar.plugins.java.api.CheckRegistrar} interface.
*/
@SonarLintSide
public class HybrisJavaFileCheckRegistrar implements CheckRegistrar {
public static List> checkClasses() {
return RulesList.getJavaChecks();
}
public static List> testCheckClasses() {
return RulesList.getJavaTestChecks();
}
@Override
public void register(final RegistrarContext registrarContext) {
// Call to registerClassesForRepository to associate the classes with the correct repository key
registrarContext.registerClassesForRepository(HybrisJavaRulesDefinition.REPOSITORY_KEY, checkClasses(), testCheckClasses());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy