Skip to content

Commit c5817c6

Browse files
Merge pull request #1166 from bjaglin/scalafixScalaBinaryVersion
document sbt-scalafix scalafixScalaBinaryVersion
2 parents 939a36e + a085542 commit c5817c6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

docs/rules/ExplicitResultTypes.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ This rule has several known limitations, which are most likely fixable with some
3434
effort. At the time of this writing, there are no short-term plans to address
3535
these issues however.
3636

37-
### Limited Scala support
38-
39-
Due to implementation details, this rule works only with @SCALA212@. Scala 2.11
40-
and 2.13 are not supported for this rule. See
41-
[#988](https://github.com/scalacenter/scalafix/issues/998) if you want to
42-
contribute support for other Scala versions.
43-
4437
### Imports ordering
4538

4639
The rewrite inserts imports at the bottom of the global import list. Users are

docs/users/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Great! You are all set to use Scalafix with sbt :)
156156
| `scalafixConfig` | `SettingKey[Option[File]]` | `.scalafix.conf` file to specify which scalafix rules should run, together with their potential options. Defaults to `.scalafix.conf` in the root directory, if it exists.
157157
| `scalafixDependencies` | `SettingKey[Seq[ModuleID]]` | Dependencies making [custom rules](#run-custom-rules) available via their simple name. Must be set in `ThisBuild`. Defaults to `Nil`.
158158
| `scalafixResolvers` | `SettingKey[Seq[Repository]]` | Custom resolvers where `scalafixDependencies` are resolved from. Must be set in `ThisBuild`. Defaults to: Ivy2 local, Maven Central, Sonatype releases & Sonatype snapshots.
159+
| `scalafixScalaBinaryVersion` | `SettingKey[String]` | Scala binary version used for Scalafix execution. Defaults to 2.12. For advanced rules such as ExplicitResultTypes to work, it must match the binary version defined in the build for compiling sources. Note that `scalafixDependencies` artifacts must be published against that Scala version.
160+
159161
160162
### Main and test sources
161163

0 commit comments

Comments
 (0)