Skip to content

Commit

Permalink
Move :line:column outside of colored formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Jun 12, 2018
1 parent 4ee14ed commit 7b42db0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DefaultReporterFormat(reporter: ConfigurableReporter) extends ReporterForm
problem.position.pfile.map { filePath =>
val line = toOption(problem.position.line).map(":" + _).getOrElse("")
val column = toOption(problem.position.pointer).map(o => s":${o + 1}").getOrElse("")
colored(reporter.config.sourcePathColor, s"$filePath$line$column")
colored(reporter.config.sourcePathColor, filePath) + s"$line$column"
}

protected def formatSource(problem: Problem): Option[String] =
Expand Down

0 comments on commit 7b42db0

Please sign in to comment.