Skip to content

Commit

Permalink
minor code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonJPegg committed Dec 21, 2021
1 parent 3b16f5e commit d7320c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import java.io.File
import org.antipathy.mvn_scalafmt.model.FormatResult
import org.apache.commons.io.FileUtils
import org.apache.maven.plugin.logging.Log
import org.antipathy.mvn_scalafmt.ScalaFormatter

/** Class for writing formatted source files
*/
Expand All @@ -17,7 +18,6 @@ class FormattedFilesWriter(log: Log, val showReformattedOnly: Boolean) extends F
* @param input The input to write
*/
protected def processUnformattedFile(input: FormatResult): Unit = {
import org.antipathy.mvn_scalafmt.ScalaFormatter
log.debug(s"Writing ${input.sourceFile.getName} to ${input.sourceFile.getCanonicalPath}")

val newFilePath = input.sourceFile.getCanonicalPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MavenLogReporter(log: Log) extends ScalafmtReporter {

/** This method appears to be used to print download information, sys.err should be fine here.
*/
@Deprecated override def downloadWriter(): PrintWriter = new PrintWriter(System.err)
@deprecated override def downloadWriter(): PrintWriter = new PrintWriter(System.err)

/** This method appears to be used to print download information, sys.err should be fine here.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import org.apache.maven.plugin.logging.Log
import org.mockito.Mockito
import org.antipathy.mvn_scalafmt.model.FormatResult
import java.io.File

import org.antipathy.mvn_scalafmt.model.{FileSummary, Summary}
import org.antipathy.mvn_scalafmt.model.{FileSummary, Summary, FormatResult}

class TestResultLogWriterSpec extends AnyFlatSpec with GivenWhenThen with Matchers {

Expand Down

0 comments on commit d7320c5

Please sign in to comment.