package io.gitlab.arturbosch.detekt.sonar

import io.gitlab.arturbosch.detekt.api.Config

/**
 * Config wrapper for disabling automatic correction
 */
@Suppress("UNCHECKED_CAST")
class NoAutoCorrectConfig(private val config: Config): Config {

    override fun subConfig(key: String): Config = config.subConfig(key)

    override fun <T : Any> valueOrDefault(key: String, default: T): T {
        if ("autoCorrect".equals(key)) {
            return false as T
        }
        return config.valueOrDefault(key, default)
    }

}

package io.gitlab.arturbosch.detekt.sonar

import io.gitlab.arturbosch.detekt.api.Config

/**
 * Config wrapper for disabling automatic correction
 */
@Suppress("UNCHECKED_CAST")
class NoAutoCorrectConfig(private val config: Config) : Config {

	override fun subConfig(key: String): Config = config.subConfig(key)

	override fun <T : Any> valueOrDefault(key: String, default: T): T {
		if ("autoCorrect" == key) {
			return false as T
		}
		return config.valueOrDefault(key, default)
	}

}

Indent with tabs an use == instead of equals
Indent with tabs an use == instead of equals

rock3r/detekt,MyDogTom/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt