Conversation
Codecov Report
@@ Coverage Diff @@
## main #3655 +/- ##
=========================================
Coverage 78.12% 78.12%
Complexity 2837 2837
=========================================
Files 467 467
Lines 9143 9143
Branches 1737 1737
=========================================
Hits 7143 7143
Misses 1058 1058
Partials 942 942
Continue to review full report at Codecov.
|
picklebento
left a comment
There was a problem hiding this comment.
Thank you for fixing this!
(I left a comment but feel free to drop, the DslGradleRunner is a bit messy when I read the code even before this PR)
| .writeText("public class ${name}Test {}") | ||
| } | ||
|
|
||
| fun DslGradleRunner.createJavaClass(submodule: Submodule, name: String) { |
There was a problem hiding this comment.
For these extension methods - Do we think it would be better to modularize as:
fun DslGradleRunner.findMainSrcDir()
fun DslGradleRunner.findTestSrcDir()
fun Submodule.findMainSrcDir()
fun Submodule.findTestSrcDir()
and
fun writeJavaFile()
It might be confusing to have createJavaClass() write to both main and test.
There was a problem hiding this comment.
I agree... I think that we should not have a difference between module and submodule. Both hae the same features. This DSL needs a refactor but I'm not sure if it's worth it.
There was a problem hiding this comment.
I can't implement this:
fun Submodule.findMainSrcDir()
fun Submodule.findTestSrcDir()
Because a Submodule doesn't have the information about DslGradleRunner and I need the DslGradleRunner to get the base path.
I'd vote to merge this and if you think that we should rethinkg the DslGradleRunner we can open an issue and see how can we refactor it.
There was a problem hiding this comment.
We probably just need housekeeping work on DslGradleRunner
This reverts commit 2c4b6fb.
This reverts commit 2c4b6fb.
Fix #3019
The JVM and the Android tasks are sending non-kotlin files as input to the client. This was configured properly in Plain detekt but not in the others. This PR fixes that.
This PR was originally opened here #3648 but I messed up with a merge and it end up closed automatically.