Is there a constant String value for the checkstyl...
# community-support
d
Is there a constant String value for the checkstyle plugin's configuration it creates? The configuration it creates is under the same name as the plugin itself ('checkstyle'), but I was hoping to refer to the constant in case that ever changed.
Ah, I see that there's a
getConfigurationName()
method implemented in the AbstractCodeQualityPlugin, which returns the tool name in lowercase. https://github.com/gradle/gradle/blob/master/platforms/jvm/code-quality/src/main/g[…]dle/api/plugins/quality/internal/AbstractCodeQualityPlugin.java
However with the
protected
modifier, I don't have a way of getting that value.
v
It's unlikely to change, as it would be a breaking change. And if so, then usually just with a proper deprecation cycle. And if you use Kotlin DSL and the accessor for the configuration it would also fail to compile the build script as soon as the name would have been changed.