-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using detekt in a precompiled Gradle script #6895
Comments
What should I do on that project to reproduce your problem? If I run
So you just didn't configure detekt at all there. |
@BraisGabin Apologies, I didn't push my changes. Applying the plugin like this results in the error I posted above: https://github.com/imashnake0/Detekt-Convention/blob/8d9b957f337c785f840303db75e806101d55d8a2/app/build.gradle.kts#L4 Let me know if you can provide a sample for using detekt via a precompiled script. |
I can reproduce the error but I'm not sure what's going on. I don't use fun Project.setupDetekt(vararg buildVariats: String) {
pluginManager.apply("io.gitlab.arturbosch.detekt")
extensions.configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
baseline = file("baseline.xml")
}
... And then on my scripts I add |
Expected Behavior
I'm trying to use detekt in a precompiled Gradle script. I can't seem to apply the precompiled script plugin to a specific module. See #3490 (comment) and https://github.com/imashnake0/Detekt-Convention.
Observed Behavior
Build fails with:
Steps to Reproduce
Context
I'm trying to configure detekt and use it as a precompiled script (instead of a
detekt.gradle
script plugin) as mentioned here: #3490 (comment).@cortinico Is there any chance you could create a sample to showcase how detekt can be used in a precompiled script?
Your Environment
--scan
option when running the gradle task): N/AThe text was updated successfully, but these errors were encountered: