MaibornWolff / metric-gardener

BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Bug Kotlin: functional interface can not be handled #324

Open mylinhdao opened 2 months ago

mylinhdao commented 2 months ago

The following code of functional interface cannot be parsed correctly by tree-sitter-kotlin, which cause to uncorrect calculation of "classes", "functions" and "complexity" metrics:

fun interface IntPredicate {
    fun accept(i: Int): Boolean

There is already a PR for this in https://github.com/fwcd/tree-sitter-kotlin/pull/103 . As soon as this is merged and released, we need to adjust node-type-config.json

bricka commented 2 months ago

Related to https://github.com/fwcd/tree-sitter-kotlin/issues/87