Created
September 19, 2019 10:53
-
-
Save olegosipenko/66c10a8de9f9461d66aed1547949e690 to your computer and use it in GitHub Desktop.
For blog post about sealed classes, when expressions and custom detekt rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomRulesetProvider: RuleSetProvider { | |
override val ruleSetId: String = "detekt-rules" | |
override fun instance(config: Config): RuleSet = RuleSet( | |
ruleSetId, | |
listOf( | |
NonExhaustiveWhen(config) | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment