Skip to content

Commit

Permalink
Merge pull request sbt#413 from eed3si9n/wip/LoggedReporter
Browse files Browse the repository at this point in the history
neo-sbt-scalafmt and making LoggedReporter extensible
  • Loading branch information
jvican authored Sep 25, 2017
2 parents 25ad019 + 264ffc5 commit 30c9bb4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion bin/run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ sbt -Dfile.encoding=UTF-8 \
-J-XX:ReservedCodeCacheSize=256M \
-J-Xmx3046M -J-Xms3046M -J-server \
+mimaReportBinaryIssues \
scalafmtTest \
scalafmt::test \
test:scalafmt::test \
zincRoot/test:compile \
crossTestBridges \
"publishBridgesAndSet $SCALA_VERSION" \
Expand Down
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ lazy val zincRoot: Project = (project in file("."))
homepage := Some(url("https://github.com/sbt/zinc")),
developers +=
Developer("jvican", "Jorge Vicente Cantero", "@jvican", url("https://github.com/jvican")),
scalafmtOnCompile := true,
scalafmtVersion := "1.2.0",
scalafmtOnCompile in Sbt := false,
)),
minimalSettings,
otherRootSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ class LoggedReporter(
sourcePositionMapper: Position => Position = identity[Position]
) extends Reporter {
import sbt.util.InterfaceUtil.{ toSupplier => f0 }
val positions = new mutable.HashMap[PositionKey, Severity]
val count = new EnumMap[Severity, Int](classOf[Severity])
protected val allProblems = new mutable.ListBuffer[Problem]
lazy val positions = new mutable.HashMap[PositionKey, Severity]
lazy val count = new EnumMap[Severity, Int](classOf[Severity])
protected lazy val allProblems = new mutable.ListBuffer[Problem]
reset()

def reset(): Unit = {
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.0.0
sbt.version=1.0.2
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.2.27")
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0-M1")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.2.0")
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.10")
// addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.7.0")
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.3")
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.0")
Expand Down

0 comments on commit 30c9bb4

Please sign in to comment.