-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from bjaglin/21313
test against scala 2.13.13
- Loading branch information
Showing
5 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
inThisBuild( | ||
List( | ||
// support sbt 1.3.x, see https://github.com/sbt/sbt/issues/5110 | ||
Global / semanticdbVersion := scalafixSemanticdb.revision | ||
ThisBuild / semanticdbEnabled := true | ||
|
||
lazy val scala212 = project | ||
.settings( | ||
scalaVersion := "2.12.19", | ||
semanticdbEnabled := true, | ||
semanticdbVersion := scalafixSemanticdb.revision | ||
scalacOptions += "-Ywarn-unused" | ||
) | ||
) | ||
|
||
lazy val example = project | ||
lazy val scala213 = project | ||
.settings( | ||
scalacOptions += "-Ywarn-unused" | ||
scalaVersion := "2.13.13", | ||
scalacOptions += "-Wunused" | ||
) |
1 change: 0 additions & 1 deletion
1
src/sbt-test/sbt-scalafix/semanticdb-enabled/project/build.properties
This file was deleted.
Oops, something went wrong.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
src/sbt-test/sbt-scalafix/semanticdb-enabled/scala213/src/main/scala/example/Example.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package example | ||
|
||
import java.util.Map | ||
|
||
object Example { | ||
private val a = 1 | ||
def f(): Unit = { | ||
val b = "" | ||
println("f") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
-> example/scalafix --check | ||
> example/scalafix | ||
> example/scalafix --check | ||
-> scala212/scalafix --check | ||
> scala212/scalafix | ||
> scala212/scalafix --check | ||
|
||
-> scala213/scalafix --check | ||
> scala213/scalafix | ||
> scala213/scalafix --check |