Skip to content

Commit

Permalink
Customize type printing of DisableSyntax.regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Ólafur Páll Geirsson committed Sep 12, 2018
1 parent ef93c8a commit c66f24d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import metaconfig.Configured
import metaconfig.annotation.Description
import metaconfig.annotation.ExampleValue
import metaconfig.annotation.Hidden
import pprint.TPrint
import scalafix.config.CustomMessage

case class DisableSyntaxConfig(
Expand Down Expand Up @@ -86,6 +87,8 @@ case class DisableSyntaxConfig(
}

object DisableSyntaxConfig {
implicit val tprintPattern: TPrint[List[CustomMessage[Pattern]]] =
TPrint.literal("List[Regex]")
val default: DisableSyntaxConfig = DisableSyntaxConfig()
implicit val surface: Surface[DisableSyntaxConfig] =
generic.deriveSurface[DisableSyntaxConfig]
Expand Down

0 comments on commit c66f24d

Please sign in to comment.