Skip to content

Commit

Permalink
document sbt-scalafix scalafixScalaBinaryVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
github-brice-jaglin committed Jul 2, 2020
1 parent 307c109 commit a085542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/rules/ExplicitResultTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ This rule has several known limitations, which are most likely fixable with some
effort. At the time of this writing, there are no short-term plans to address
these issues however.

### Limited Scala support

Due to implementation details, this rule works only with @SCALA212@. Scala 2.11
and 2.13 are not supported for this rule. See
[#988](https://github.com/scalacenter/scalafix/issues/998) if you want to
contribute support for other Scala versions.

### Imports ordering

The rewrite inserts imports at the bottom of the global import list. Users are
Expand Down
2 changes: 2 additions & 0 deletions docs/users/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ Great! You are all set to use Scalafix with sbt :)
| `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.
| `scalafixDependencies` | `SettingKey[Seq[ModuleID]]` | Dependencies making [custom rules](#run-custom-rules) available via their simple name. Must be set in `ThisBuild`. Defaults to `Nil`.
| `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.
| `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.
### Main and test sources
Expand Down

0 comments on commit a085542

Please sign in to comment.