Skip to content

Commit

Permalink
Merge pull request #136 from lenguyenthanh/add-Wsafe-init
Browse files Browse the repository at this point in the history
Add -Wsafe-init for scala 3.5.0
  • Loading branch information
TonioGela authored Aug 27, 2024
2 parents 835d7d6 + 9e66df4 commit c92019c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,12 @@ private[scalacoptions] trait ScalacOptions {
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Enables safe initialization check. More info:
* [[https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html]]
*/
val warnSafeInit =
warnOption("safe-init", version => version >= V3_5_0)

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

0 comments on commit c92019c

Please sign in to comment.