-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What problem are you trying to solve?
Easy of configuration for initial users
Describe the solution you'd like
rewrite-gradle-plugin/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java
Lines 1340 to 1353 in 459570d
private List<NamedStyles> getStyles() { | |
if (styles == null) { | |
styles = environment().activateStyles(getActiveStyles()); | |
File checkstyleConfig = extension.getCheckstyleConfigFile(); | |
if (checkstyleConfig != null && checkstyleConfig.exists()) { | |
try { | |
styles.add(CheckstyleConfigLoader.loadCheckstyleConfig(checkstyleConfig.toPath(), extension.getCheckstyleProperties())); | |
} catch (Exception e) { | |
logger.warn("Unable to parse Checkstyle configuration", e); | |
} | |
} | |
} | |
return styles; | |
} |
It would be great if the plugin could A) detect if the checkstyle plugin was loaded
B) at task execution time us the configFile value automatically from https://docs.gradle.org/current/dsl/org.gradle.api.plugins.quality.CheckstyleExtension.html#org.gradle.api.plugins.quality.CheckstyleExtension:configFile
Have you considered any alternatives or workarounds?
You can manually configure this but non-obvious.
Additional context
Are you interested in contributing this feature to OpenRewrite?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog