Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ object ScalaVersion {
val V3_3_0 = ScalaVersion(3, 3, 0)
val V3_3_1 = ScalaVersion(3, 3, 1)
val V3_3_3 = ScalaVersion(3, 3, 3)
val V3_3_5 = ScalaVersion(3, 3, 5)
val V3_4_0 = ScalaVersion(3, 4, 0)
val V3_5_0 = ScalaVersion(3, 5, 0)
val V3_5_2 = ScalaVersion(3, 5, 2)

private val versionRegex = raw"""(\d+)\.(\d+)\.(\d+)(?:-.*)?""".r
def fromString(version: String): Either[IllegalArgumentException, ScalaVersion] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,15 @@ private[scalacoptions] trait ScalacOptions {
val warnSafeInit =
warnOption("safe-init", version => version >= V3_5_0)

/** Enables all warnings. More info:
*
* [[https://github.com/scala/scala3/pull/20577]]
*
* Added in 3.5.2, back ported to 3.3.5
*/
val warnAll =
warnOption("all", version => version.isAtLeast(V3_5_2) || version.isBetween(V3_3_5, V3_4_0))

/** Unused warning options (-Wunused:)
*/
val warnUnusedOptions: Set[ScalacOption] = ListSet(
Expand Down