File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -411,13 +411,27 @@ git diff // should produce a diff
411
411
First, install the [ Coursier] ( https://get-coursier.io/docs/cli-installation )
412
412
command-line interface.
413
413
414
- Next, install a ` scalafix ` binary with Coursier
414
+ Then, download the Scalafix runner built with the latest version of Scala
415
+ (@SCALA3NEXT @)
415
416
416
417
``` sh
417
418
cs install scalafix
418
419
./scalafix --version # Should say @VERSION@
419
420
```
420
421
422
+ > If you plan to use advanced semantic rules like ` ExplicitResultTypes ` , you
423
+ > must use the version of Scalafix built with a Scala version matching your
424
+ > target source files.
425
+ >
426
+ > If your target files are not built with the latest minor version of Scala,
427
+ > use one of the following commands to create a custom runner
428
+ >
429
+ > ``` sh
430
+ > cs bootstrap ch.epfl.scala:scalafix-cli_@SCALA212@:@VERSION@ --main scalafix.cli.Cli -o scalafix_2.12
431
+ > cs bootstrap ch.epfl.scala:scalafix-cli_@SCALA213@:@VERSION@ --main scalafix.cli.Cli -o scalafix_2.13
432
+ > cs bootstrap ch.epfl.scala:scalafix-cli_@SCALA3LTS@:@VERSION@ --main scalafix.cli.Cli -o scalafix_3-lts
433
+ > ` ` `
434
+
421
435
# ## Help
422
436
423
437
` ` ` scala mdoc:--help
You can’t perform that action at this time.
0 commit comments