Detekt: Improving Kotlin Quality

plugins {
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC14"
}
detekt {
toolVersion = "1.0.0-RC14"
input = files("$projectDir")
config = files("$project.projectDir/default-detekt-config.yml")
reports {
xml {
enabled = true
destination = file("$project.projectDir/detekt-report.xml")
}
html {
enabled = true
destination = file("$project.projectDir/detekt-report.html")
}
}
}
//FakeTaksRemoteDataSource.kt:27:5private val TASKS_SERVICE_DATA = LinkedHashMap<String, Task>()changed toprivate val tasksServiceData = LinkedHashMap<String, Task>()//TaskActivity.kt:36:5private val CURRENT_FILTERING_KEY = "CURRENT_FILTERING_KEY"changed tocompanion object {
private const val CURRENT_FILTERING_KEY = "CURRENT_FILTERING_KEY"
}

--

--

Android Developer @Mobven

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store