I want to suppress 'HideUtilityClassConstructor' rule the for classes that have main method. That look like this:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
- Since all checkstyle rules are located in the common library - it should be a generic skip for any module that uses those rules.
- Name of the main class can be different (the skip should be applied for all classes that have public static main method)
- The change should be located in checkstyle common xml files (not in main class, like using @SupressWarnings or comments)
Is it possible to do it?