Skip to content

Commit

Permalink
Bump sbt plugins
Browse files Browse the repository at this point in the history
* sbt-docusaur to 0.15.0
* sbt-devoops to 3.0.0
  • Loading branch information
kevin-lee committed Feb 1, 2024
1 parent 5f86683 commit 49539bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ lazy val props =
m => m.name == "wartremover"

// final val ProjectScalaVersion: String = "3.1.3"
// final val ProjectScalaVersion: String = "3.3.1"
final val ProjectScalaVersion: String = "2.13.12"
final val CrossScalaVersions: List[String] =
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object Common {
-1
case (_ +: _, Seq()) =>
1
case (Seq(), Seq()) =>
case (Seq(), Seq()) | (_, _) =>
0
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ object Parser {

def charsWhile(f: Char => Boolean): Parser[String] = new Parser[String] {
override def parseTo(state: State): String = {
val parsed = state.value.zipWithIndex.drop(state.offset).takeWhile { case (c, index) => f(c) }
val parsed = state.value.zipWithIndex.drop(state.offset).takeWhile { case (c, index @ _) => f(c) }
val parsedStr = parsed.map(_._1).mkString
val offset = parsed.lastOption.map(_._2).getOrElse(0)
if (parsedStr.isEmpty) {
state.error = Some(ParserError("", None, Some(state.value)))
state.error = Some(ParserError("", None: Option[String], Some(state.value)))
""
} else
} else {
state.offset = offset + 1
parsedStr
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.4")

addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.7")
addSbtPlugin("io.kevinlee" % "sbt-docusaur" % "0.13.0")
addSbtPlugin("io.kevinlee" % "sbt-docusaur" % "0.15.0")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.1")
Expand All @@ -15,7 +15,7 @@ addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")

addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.3.4")

val sbtDevOopsVersion = "2.24.0"
val sbtDevOopsVersion = "3.0.0"
addSbtPlugin("io.kevinlee" % "sbt-devoops-scala" % sbtDevOopsVersion)
addSbtPlugin("io.kevinlee" % "sbt-devoops-sbt-extra" % sbtDevOopsVersion)
addSbtPlugin("io.kevinlee" % "sbt-devoops-github" % sbtDevOopsVersion)
Expand Down

0 comments on commit 49539bb

Please sign in to comment.