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.InterfaceSegregationPrinciple
import io.github.mkohm.detekt.hint.rules.LackOfCohesionMethods
import io.github.mkohm.detekt.hint.rules.OpenClosedPrinciple
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), LackOfCohesionMethods(config), InterfaceSegregationPrinciple(config), OpenClosedPrinciple(config)
        )
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy