Skip to content

Commit 3a1062f

Browse files
authored
Merge pull request scalacenter#2243 from scalacenter/scalaVersionCommon
scala version is used to infer dialect so it's a common opt
2 parents 1f2bbf3 + 76d2590 commit 3a1062f

File tree

1 file changed

+5
-5
lines changed
  • scalafix-cli/src/main/scala/scalafix/internal/v1

1 file changed

+5
-5
lines changed

scalafix-cli/src/main/scala/scalafix/internal/v1/Args.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ case class Args(
7777
"If set, only apply scalafix to added and edited files in git diff against a provided branch, commit or tag."
7878
)
7979
diffBase: Option[String] = None,
80+
@Description(
81+
"The major or binary Scala version that the provided files are targeting, " +
82+
"or the full version that was used to compile them when a classpath is provided."
83+
)
84+
scalaVersion: ScalaVersion = Args.runtimeScalaVersion,
8085
@Description(
8186
"Run only syntactic rules, ignore semantic rules even if they are explicitly " +
8287
"configured in .scalafix.conf or via --rules"
@@ -124,11 +129,6 @@ case class Args(
124129
"The scala compiler options used to compile this --classpath, for example -Ywarn-unused-import"
125130
)
126131
scalacOptions: List[String] = Nil,
127-
@Description(
128-
"The major or binary Scala version that the provided files are targeting, " +
129-
"or the full version that was used to compile them when a classpath is provided."
130-
)
131-
scalaVersion: ScalaVersion = Args.runtimeScalaVersion,
132132
@Section("Tab completions")
133133
@Description(
134134
"""|Print out bash tab completions. To install:

0 commit comments

Comments
 (0)