Package de.hsh.graja.modules.checkstyle
Class CheckstyleModuleRunner
java.lang.Object
de.hsh.graja.core.ModuleRunner
de.hsh.graja.modules.checkstyle.CheckstyleModuleRunner
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ListFixes wrong checkstyle configurations in context to graja circumstances, e.g. a wrongly configured charset.run(ModuleRunnerInput mri, Map<String, ModuleRunnerResult> previousModuleResults) Loads the checkstyle configuration, configures checkstyle and runs it on the submission source files.
-
Constructor Details
-
CheckstyleModuleRunner
-
-
Method Details
-
getModuleConfiguration
- Overrides:
getModuleConfigurationin classModuleRunner- Returns:
- the module configuration
-
run
public ModuleRunnerResult run(ModuleRunnerInput mri, Map<String, ModuleRunnerResult> previousModuleResults) Loads the checkstyle configuration, configures checkstyle and runs it on the submission source files.- Specified by:
runin classModuleRunner- Parameters:
mri- the input data for the runnerpreviousModuleResults- output of previous modules serves as input for this module- Returns:
- the result of the checkstyle execution, framed by debug information
-
fixWrongConfigurations
public static List fixWrongConfigurations(CheckstyleConfiguration config) throws com.puppycrawl.tools.checkstyle.api.CheckstyleException Fixes wrong checkstyle configurations in context to graja circumstances, e.g. a wrongly configured charset.- Parameters:
config- the config that needs to be checked- Returns:
- a list of comments, containing a comment for each applied fix.
- Throws:
com.puppycrawl.tools.checkstyle.api.CheckstyleException
-