@@ -128,23 +128,23 @@ case class Args(
128
128
@ Section (" Tab completions" )
129
129
@ Description (
130
130
""" |Print out bash tab completions. To install:
131
- |```
132
- |# macOS, requires "brew install bash-completion"
133
- |scalafix --bash > /usr/local/etc/bash_completion.d/scalafix
134
- |# Linux
135
- |scalafix --bash > /etc/bash_completion.d/scalafix
136
- |```
137
- |""" .stripMargin
131
+ |```
132
+ |# macOS, requires "brew install bash-completion"
133
+ |scalafix --bash > /usr/local/etc/bash_completion.d/scalafix
134
+ |# Linux
135
+ |scalafix --bash > /etc/bash_completion.d/scalafix
136
+ |```
137
+ |""" .stripMargin
138
138
)
139
139
bash : Boolean = false ,
140
140
@ Description (
141
141
""" |Print out zsh tab completions. To install:
142
- |```
143
- |scalafix --zsh > /usr/local/share/zsh/site-functions/_scalafix
144
- |unfunction _scalafix
145
- |autoload -U _scalafix
146
- |```
147
- |""" .stripMargin
142
+ |```
143
+ |scalafix --zsh > /usr/local/share/zsh/site-functions/_scalafix
144
+ |unfunction _scalafix
145
+ |autoload -U _scalafix
146
+ |```
147
+ |""" .stripMargin
148
148
)
149
149
zsh : Boolean = false ,
150
150
// TODO: --sbt
@@ -384,34 +384,33 @@ case class Args(
384
384
}
385
385
386
386
def validate : Configured [ValidatedArgs ] = {
387
- baseConfig.andThen {
388
- case (base, scalafixConfig, delegator) =>
389
- (
390
- configuredSourceroot |@|
391
- configuredSymtab |@|
392
- configuredRules(base, scalafixConfig) |@|
393
- resolvedPathReplace |@|
394
- configuredDiffDisable |@|
395
- configuredGlobal
396
- ).map {
397
- case (
387
+ baseConfig.andThen { case (base, scalafixConfig, delegator) =>
388
+ (
389
+ configuredSourceroot |@|
390
+ configuredSymtab |@|
391
+ configuredRules(base, scalafixConfig) |@|
392
+ resolvedPathReplace |@|
393
+ configuredDiffDisable |@|
394
+ configuredGlobal
395
+ ).map {
396
+ case (
398
397
((((root, symtab), rulez), pathReplace), diffDisable),
399
398
global
400
- ) =>
401
- ValidatedArgs (
402
- this ,
403
- symtab,
404
- rulez,
405
- scalafixConfig,
406
- classLoader,
407
- root,
408
- pathReplace,
409
- diffDisable,
410
- delegator,
411
- semanticdbFilterMatcher,
412
- global
413
- )
414
- }
399
+ ) =>
400
+ ValidatedArgs (
401
+ this ,
402
+ symtab,
403
+ rulez,
404
+ scalafixConfig,
405
+ classLoader,
406
+ root,
407
+ pathReplace,
408
+ diffDisable,
409
+ delegator,
410
+ semanticdbFilterMatcher,
411
+ global
412
+ )
413
+ }
415
414
}
416
415
}
417
416
}
@@ -477,14 +476,14 @@ object Args {
477
476
TPrint .make[PathMatcher ](_ => " <glob>" )
478
477
implicit val confPrint : TPrint [Conf ] =
479
478
TPrint .make[Conf ](implicit cfg => TPrint .implicitly[ScalafixConfig ].render)
480
- implicit def optionPrint [T ](
481
- implicit ev : pprint.TPrint [T ]
479
+ implicit def optionPrint [T ](implicit
480
+ ev : pprint.TPrint [T ]
482
481
): TPrint [Option [T ]] =
483
482
TPrint .make { implicit cfg =>
484
483
ev.render
485
484
}
486
- implicit def iterablePrint [C [x] <: Iterable [x], T ](
487
- implicit ev : pprint.TPrint [T ]
485
+ implicit def iterablePrint [C [x] <: Iterable [x], T ](implicit
486
+ ev : pprint.TPrint [T ]
488
487
): TPrint [C [T ]] =
489
488
TPrint .make { implicit cfg =>
490
489
s " [ ${ev.render} ...] "
0 commit comments