Skip to content
Permalink
Browse files

Update Scala to 2.13.1

  • Loading branch information
fthomas committed Dec 22, 2019
1 parent 5e82d59 commit 6e40cbf6e219046893d489c227db0a21513cc03e
@@ -3,7 +3,7 @@ jdk:
- openjdk8
- openjdk11
scala:
- 2.12.10
- 2.13.1
services:
- docker

@@ -102,6 +102,7 @@ lazy val core = myCrossProject("core")
lazy val plugin = myCrossProject("plugin")
.settings(noPublishSettings)
.settings(
scalaVersion := "2.12.10",
sbtPlugin := true,
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.0"),
Compile / compile / wartremoverErrors -= Wart.Equals
@@ -164,8 +164,9 @@ object UpdateHeuristic {

val sliding = UpdateHeuristic(
name = "sliding",
replaceVersion =
defaultReplaceVersion(_.mainArtifactId.sliding(5).take(5).filterNot(_ === "scala").toList)
replaceVersion = defaultReplaceVersion(
_.mainArtifactId.toSeq.sliding(5).map(_.unwrap).take(5).filterNot(_ === "scala").toList
)
)

val completeGroupId = UpdateHeuristic(
@@ -42,8 +42,8 @@ package object edit {
Nel.of((target, true))
} else {
val buffer = mutable.ListBuffer.empty[(String, Boolean)]
val on = StringBuilder.newBuilder
val off = StringBuilder.newBuilder
val on = new StringBuilder()
val off = new StringBuilder()
val regexIgnoreMultiLinesBegins = "^\\s*//\\s*scala-steward:off".r
def flush(builder: StringBuilder, canReplace: Boolean): Unit =
if (builder.nonEmpty) {
@@ -38,7 +38,7 @@ final class JsonKeyValueStore[F[_], K, V](name: String, schemaVersion: String)(
read.map(_.get(key))

override def getMany(keys: List[K]): F[Map[K, V]] =
read.map(_.filterKeys(keys.contains))
read.map(_.view.filterKeys(keys.contains).toMap)

override def modifyF(key: K)(f: Option[V] => F[Option[V]]): F[Option[V]] =
read.flatMap { store =>
@@ -9,7 +9,7 @@ import scala.collection.mutable.ListBuffer
class utilTest extends AnyFunSuite with Matchers with ScalaCheckPropertyChecks {
test("appendBounded") {
val lb = new ListBuffer[Int]
lb.append(1, 2, 3)
lb.appendAll(List(1, 2, 3))

appendBounded(lb, 4, 4)
lb.toList shouldBe List(1, 2, 3, 4)

0 comments on commit 6e40cbf

Please sign in to comment.
You can’t perform that action at this time.