Skip to content

Commit

Permalink
feat: expose kotlin analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
Andong Liao committed Mar 1, 2022
1 parent ffa1846 commit d0dd015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chapi.app.analyser

import chapi.app.analyser.config.ChapiConfig
import chapi.app.analyser.config.Language
import chapi.app.analyser.support.IAnalyser
import chapi.domain.core.CodeDataStruct

Expand Down Expand Up @@ -31,6 +32,9 @@ open class ChapiAnalyser(
"scala" -> {
langAnalyser = ScalaAnalyserApp(config)
}
Language.KOTLIN -> {
langAnalyser = KotlinAnalyserApp(config)
}
else -> {
langAnalyser = JavaAnalyserApp(config)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ data class ChapiConfig(
var language: String = "",
var withoutTest: Boolean = false,
var filterRule: String = ""
) {

}
)

// TODO replace string value
object Language {
const val KOTLIN = "kotlin"
const val JAVA = "java"
Expand Down

0 comments on commit d0dd015

Please # to comment.