Skip to content

Instantly share code, notes, and snippets.

@olegosipenko
Created September 19, 2019 10:53
Show Gist options
  • Save olegosipenko/12b969ff249662ca1fa943423b18400b to your computer and use it in GitHub Desktop.
Save olegosipenko/12b969ff249662ca1fa943423b18400b to your computer and use it in GitHub Desktop.
For blog post about sealed classes, when expressions and custom detekt rule
companion object {
@JvmStatic
fun compliantProvider(): Stream<Arguments> =
Stream.of(
arguments(COMPLIANT_WHEN_DOT, "dot expression"),
arguments(COMPLIANT_WHEN_PROPERTY, "property"),
arguments(COMPLIANT_WHEN_RETURN, "return")
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment