diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 926a664a..68b832c0 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -14,9 +14,9 @@ jobs: - 2.12.11 - 2.12.12 - 2.12.13 - - 2.13.2 - 2.13.3 - 2.13.4 + - 2.13.5 steps: - uses: actions/checkout@v2 - uses: olafurpg/setup-scala@v10 diff --git a/.gitignore b/.gitignore index 8d4f4bd4..03ffde10 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ target .bloop .metals metals.sbt + +.bsp \ No newline at end of file diff --git a/README.md b/README.md index 8a9719ee..259c6411 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Scapegoat [![Codecov](https://img.shields.io/codecov/c/github/sksamuel/scapegoat)](https://codecov.io/gh/sksamuel/scapegoat) [](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22scalac-scapegoat-plugin_2.11.12%22) [](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22scalac-scapegoat-plugin_2.12.11%22) -[](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22scalac-scapegoat-plugin_2.13.3%22) +[](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22scalac-scapegoat-plugin_2.13.5%22) [![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org) Scapegoat is a Scala static code analyzer, what is more colloquially known as a code lint tool or linter. Scapegoat works in a similar vein to Java's [FindBugs](http://findbugs.sourceforge.net/) or [checkstyle](http://checkstyle.sourceforge.net/), or Scala's [Scalastyle](https://github.com/scalastyle/scalastyle). diff --git a/build.sbt b/build.sbt index 821da089..1531272d 100644 --- a/build.sbt +++ b/build.sbt @@ -22,8 +22,8 @@ developers := List( ) ) -scalaVersion := "2.13.4" -crossScalaVersions := Seq("2.11.12", "2.12.11", "2.12.12", "2.12.13", "2.13.2", "2.13.3", "2.13.4") +scalaVersion := "2.13.5" +crossScalaVersions := Seq("2.11.12", "2.12.11", "2.12.12", "2.12.13", "2.13.3", "2.13.4", "2.13.5") autoScalaLibrary := false crossVersion := CrossVersion.full crossTarget := { diff --git a/src/test/scala/com/sksamuel/scapegoat/FeedbackTest.scala b/src/test/scala/com/sksamuel/scapegoat/FeedbackTest.scala index 676cb79a..82088687 100644 --- a/src/test/scala/com/sksamuel/scapegoat/FeedbackTest.scala +++ b/src/test/scala/com/sksamuel/scapegoat/FeedbackTest.scala @@ -35,7 +35,11 @@ class FeedbackTest extends AnyFreeSpec with Matchers with OneInstancePerTest wit val feedback = new Feedback(true, reporter, defaultSourcePrefix) feedback.warn(position, inspection) reporter.infos should contain( - reporter.Info(position, "[scapegoat] [DummyInspection] My default is Error\n This is explanation.", reporter.ERROR) + reporter.Info( + position, + "[scapegoat] [DummyInspection] My default is Error\n This is explanation.", + reporter.ERROR + ) ) } "for warning" in { @@ -50,7 +54,11 @@ class FeedbackTest extends AnyFreeSpec with Matchers with OneInstancePerTest wit feedback.warn(position, inspection) reporter.infos should contain( reporter - .Info(position, "[scapegoat] [DummyInspection] My default is Warning\n This is explanation.", reporter.WARNING) + .Info( + position, + "[scapegoat] [DummyInspection] My default is Warning\n This is explanation.", + reporter.WARNING + ) ) } "for info" in { @@ -64,7 +72,11 @@ class FeedbackTest extends AnyFreeSpec with Matchers with OneInstancePerTest wit val feedback = new Feedback(true, reporter, defaultSourcePrefix) feedback.warn(position, inspection) reporter.infos should contain( - reporter.Info(position, "[scapegoat] [DummyInspection] My default is Info\n This is explanation.", reporter.INFO) + reporter.Info( + position, + "[scapegoat] [DummyInspection] My default is Info\n This is explanation.", + reporter.INFO + ) ) } }