Hi there! Having issue with upgrading from RC14 to...
# detekt
a
Hi there! Having issue with upgrading from RC14 to RC16. I’m using ktlint wapper and custom ruleset. After upg version, detekt task started to fail with
Cannot set value for plugins on detekt task and apply detektPlugins configuration at the same time.
message. My detekt config block is in attached snippet. Anyone faced that error?
a
hey, this is basically a change to inline with a more gradle plugin style configuration. Instead of loading the
plugins
dynamically we start detekt with the full classpath via
detektPlugins
. Please try to add a flat repository for your jar file: https://docs.gradle.org/current/userguide/repository_types.html#sec:flat_dir_resolver then add your jar inside a
detektPlugins
statement next to the formatting one.
a
Thnx, it worked when i added dependency as
detektPlugins name: "myruleset"