All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mkohm.detekt.hint.SampleProvider.kt Maven / Gradle / Ivy

package io.github.mkohm.detekt.hint

import io.github.mkohm.detekt.hint.rules.LackOfCohesionOfMethods
import io.github.mkohm.detekt.hint.rules.UseCompositionInsteadOfInheritance
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider

class SampleProvider : RuleSetProvider {

    override val ruleSetId: String = "sample"

    override fun instance(config: Config): RuleSet = RuleSet(
        ruleSetId,
        listOf(
            UseCompositionInsteadOfInheritance(config), LackOfCohesionOfMethods(config)
        )
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy