Class CodeStyleModule
java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.CodeStyleModule
- All Implemented Interfaces:
GTNHModule
Enables and configures Spotless and Checkstyle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull Project project) Activates this module on the given project.booleanisEnabled(@NotNull PropertiesConfiguration configuration)
-
Constructor Details
-
CodeStyleModule
public CodeStyleModule()
-
-
Method Details
-
isEnabled
- Specified by:
isEnabledin interfaceGTNHModule- Parameters:
configuration- The project configuration- Returns:
- If this module should be enabled for the input project settings
-
apply
Description copied from interface:GTNHModuleActivates this module on the given project.- Specified by:
applyin interfaceGTNHModule- Parameters:
gtnh- The GTNH extension providing access to various gradle services and configurationproject- The project to activate the module on
-