@Test void count() { int count = 0; List<File> files = (List<File>) FileUtils.listFiles(new File("src/main/java/org/sonar/java/checks/"), new String[] {"java"}, true); for (File file : files) { if (file.getName().endsWith("Check.java") && !BLACK_LIST.contains(file.getName())) { count++; } } assertThat(CheckList.getChecks().size()).isEqualTo(count + SE_CHEKS.size()); }
public static List<Class<?>> getChecks() { return ImmutableList.<Class<?>>builder() .addAll(getJavaChecks()) .addAll(getJavaTestChecks()) .addAll(getXmlChecks()) .build(); }
CheckList { public static List<Class<?>> getChecks() { return ImmutableList.<Class<?>>builder() .addAll(getJavaChecks()) .addAll(getJavaTestChecks()) .addAll(getXmlChecks()) .build(); } }
CheckList { public static List<Class<?>> getChecks() { return ImmutableList.<Class<?>>builder() .addAll(getJavaChecks()) .addAll(getJavaTestChecks()) .addAll(getXmlChecks()) .build(); } private  CheckList(); }
CheckList { public static List<Class<?>> getChecks() { return ImmutableList.<Class<?>>builder() .addAll(getJavaChecks()) .addAll(getJavaTestChecks()) .addAll(getXmlChecks()) .build(); } private  CheckList(); static List<Class<?>> getChecks(); static List<Class<? extends JavaCheck>> getJavaChecks(); static List<Class<? extends DebugCheck>> getDebugChecks(); static List<Class<? extends JavaCheck>> getJavaTestChecks(); static List<Class<? extends SonarXmlCheck>> getXmlChecks(); }
CheckList { public static List<Class<?>> getChecks() { return ImmutableList.<Class<?>>builder() .addAll(getJavaChecks()) .addAll(getJavaTestChecks()) .addAll(getXmlChecks()) .build(); } private  CheckList(); static List<Class<?>> getChecks(); static List<Class<? extends JavaCheck>> getJavaChecks(); static List<Class<? extends DebugCheck>> getDebugChecks(); static List<Class<? extends JavaCheck>> getJavaTestChecks(); static List<Class<? extends SonarXmlCheck>> getXmlChecks(); static final String REPOSITORY_KEY; }