Similar to #3515, Ant hardcodes Checker and doesn't allow user to set custom RootModule.
|
checker = new Checker(); |
|
checker.contextualize(context); |
|
checker.configure(config); |
|
} |
|
catch (final CheckstyleException ex) { |
|
throw new BuildException(String.format(Locale.ROOT, "Unable to create a Checker: " |
|
+ "configLocation {%s}, classpath {%s}.", configLocation, classpath), ex); |
|
} |
|
return checker; |
Similar to #3515, Ant hardcodes Checker and doesn't allow user to set custom RootModule.
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java
Lines 422 to 430 in fbf3f95