Skip to content

Commit

Permalink
chore: Add support for Scala 2.13.14
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Apr 30, 2024
1 parent 323c117 commit 501647d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
command:
- "++2.13.13 download-scala-library testsJVM/slow:test"
- "++2.13.14 download-scala-library testsJVM/slow:test"
- "communitytest/test"
- "mima"
steps:
Expand All @@ -37,7 +37,7 @@ jobs:
- 'Native'
scala:
- '2.12.19'
- '2.13.13'
- '2.13.14'
java:
- '8'
- '21'
Expand All @@ -62,9 +62,9 @@ jobs:
- '2.12.16'
- '2.12.17'
- '2.12.18'
- '2.13.10'
- '2.13.11'
- '2.13.12'
- '2.13.13'
steps:
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package org.scalameta
package build

object Versions {
val Scala211Versions = getVersions(2, 11, 12 to 12)
val Scala211Versions = getVersions(2, 11, 12 to 12)
val Scala212Versions = getVersions(2, 12, 16 to 19)
val Scala213Versions = getVersions(2, 13, 10 to 13)
val Scala213Versions = getVersions(2, 13, 11 to 14)
val LatestScala211 = Scala211Versions.head
val LatestScala212 = Scala212Versions.head
val LatestScala213 = Scala213Versions.head
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package scala.meta.internal.semanticdb.scalac

import scala.reflect.internal.util.CodeAction
import scala.reflect.internal.util.Position
import scala.tools.nsc.Settings
import scala.tools.nsc.reporters.FilteringReporter
import scala.tools.nsc.reporters.StoreReporter

class SemanticdbReporter(underlying: FilteringReporter)
extends StoreReporter(SemanticdbReporter.defaultSettings(underlying.settings)) {
override def doReport(
pos: Position,
msg: String,
severity: Severity,
actions: List[CodeAction]
): Unit = {
super.doReport(pos, msg, severity, actions)
underlying.doReport(pos, msg, severity, actions)
}

// overriding increment is enough so make sure that error/warning
// counts are the same as in underlying reporter

override def increment(severity: Severity): Unit = {
super.increment(severity)
underlying.increment(severity)
}
}
object SemanticdbReporter {
def defaultSettings(s: Settings): Settings = {
s.processArguments(List("-Xmaxwarns", "-1", "-Xmaxerrs", "-1"), true)
s
}
}

0 comments on commit 501647d

Please sign in to comment.