-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but can you revert the moving of the files into the directory hierarchies?
Kotlin doesn't need .kt
files to be in specific folders and I personally liked the flattened organization structure.
I modeled it after how the Kotlin Coroutines library does it.
Unfortunately, no I cannot. Kotlin doesn't need folders in those files, but Code Climate does. If you look at one of the CircleCI builds (such as this one) it "succeeds" but reports a bunch of errors that look like this:
Their logic requires source files to be in the package-folders 😭. |
…on & improve CircleCI logging
@cedrickcooke - Emily here with Code Climate Support. Thanks for the email about this. I think this should do the trick:
Let me know if that covers your use case. 👌 Happy to help further. |
Superseded by #42. |
I was asked to look at why this couldn't work on code climate. TL'DR: Codeclimate + jacoco depend on package name being where the files live. For example: com.juul.package => com/juul/package.kt. Kotlin has slightly augmented this to not require the full package name when the whole package has a root prefix. For example the root is You can read more here: After looking into the cc-test-reporter, I found that it's making the assumption that the path name is the full package name (including the root). This obviously does not work with Kotlin best practices. Therefore both jacoco and codeclimate need to support the root package name to omit that from the path structure. Related: jacoco/jacoco#939 |
What about Cobertura? |
Cobertura fails with:
|
Closed and re-opened now that Code Climate was relaxed