Skip to content

Commit 7d5decc

Browse files
authored
feat: Support Scala 3.3.6 and 3.7.0 (#956)
1 parent 37907b1 commit 7d5decc

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/workflows/pr-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- 2.12.20
1515
- 2.13.15
1616
- 2.13.16
17-
- 3.3.5
18-
- 3.6.4
17+
- 3.3.6
18+
- 3.7.0
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-java@v4

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ developers := List(
1919
)
2020
)
2121

22-
scalaVersion := "3.6.4"
23-
crossScalaVersions := Seq("2.12.19", "2.12.20", "2.13.15", "2.13.16", "3.3.5", "3.6.4")
22+
scalaVersion := "3.7.0"
23+
crossScalaVersions := Seq("2.12.19", "2.12.20", "2.13.15", "2.13.16", "3.3.6", "3.7.0")
2424
autoScalaLibrary := false
2525
crossVersion := CrossVersion.full
2626
crossTarget := {

src/main/scala-3/com/sksamuel/scapegoat/InspectionTraverser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract class InspectionTraverser(using inspection: Inspection) extends TreeTra
2525
val inspectionName = inspection.getClass.getSimpleName
2626
arg match {
2727
case Some(
28-
Apply(Apply(TypeApply(Select(Ident(array), _), _), List(Typed(SeqLiteral(args, _), _))), _)
28+
Apply(Apply(TypeApply(Select(Ident(_), _), _), List(Typed(SeqLiteral(args, _), _))), _)
2929
) =>
3030
args.exists {
3131
case Literal(value) if value.tag == Constants.StringTag =>

src/main/scala-3/com/sksamuel/scapegoat/Plugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import dotty.tools.dotc.ast.tpd
88
import dotty.tools.dotc.core.Contexts.Context
99
import dotty.tools.dotc.plugins.{PluginPhase, StandardPlugin}
1010
import dotty.tools.dotc.reporting.Diagnostic
11-
import dotty.tools.dotc.reporting.Diagnostic.{Error, Info, Warning}
11+
import dotty.tools.dotc.reporting.Diagnostic.Info
1212
import dotty.tools.dotc.transform.PatternMatcher
1313
import dotty.tools.dotc.typer.TyperPhase
1414
import dotty.tools.dotc.util.NoSourcePosition

src/test/scala-3/com/sksamuel/scapegoat/DottyRunner.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import dotty.tools.dotc.Driver
1010
import dotty.tools.dotc.core.Contexts
1111
import dotty.tools.dotc.core.Contexts.ContextBase
1212
import dotty.tools.dotc.plugins.{Plugin, PluginPhase, Plugins}
13-
import dotty.tools.dotc.reporting.Reporter
1413
import dotty.tools.dotc.reporting.Reporter.NoReporter
1514

1615
class TestingScapegoatPlugin extends ScapegoatPlugin {

0 commit comments

Comments
 (0)