can anyone explain how I configure this in gradle?...
# detekt
b
can anyone explain how I configure this in gradle? https://detekt.dev/docs/rules/libraries/ trying this config:
Copy code
config:
  validation: true
complexity:
  TooManyFunctions:
    active: false
libraries:
  LibraryEntitiesShouldNotBePublic:
    active: true
which gives me a - Property 'libraries' is misspelled or does not exist. using this script
Copy code
detekt {
    config.setFrom("$projectDir/../build-support/detekt-library.yml")
    dependencies {
        versionCatalogs.named("libs").findLibrary("gradle-detect-libraries").ifPresent {
            detektPlugins(it)
        }
    }
}
m
This may be a bug in the config validation. Can you please open an issue?