Can we exclude some modules? #1360
-
Now we use gradle, and diktat plugin, and run diktat on all our modules. Can we exclude some specific modules? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It really depends on how you apply the plugin. By default, when you apply diktat-gradle-plugin, it only checks Kotlin sources in the project where you apply it. Maybe, you've misconfigured inputs of diktat task so that it captures other sources too. It's really hard to say without seeing your configuration. Following current Gradle best practices, I would suggest to create a precompiled script plugin with common diktat configuration and apply it only on those gradle modules where you would like it to be. |
Beta Was this translation helpful? Give feedback.
It really depends on how you apply the plugin. By default, when you apply diktat-gradle-plugin, it only checks Kotlin sources in the project where you apply it. Maybe, you've misconfigured inputs of diktat task so that it captures other sources too. It's really hard to say without seeing your configuration.
Following current Gradle best practices, I would suggest to create a precompiled script plugin with common diktat configuration and apply it only on those gradle modules where you would like it to be.