Skip to content

Commit

Permalink
Reformat with scalafmt 3.7.8
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
typelevel-steward[bot] committed Jul 11, 2023
1 parent 1f3fb5a commit b7eec74
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,10 @@ private[davidgregory084] trait ScalacOptions {
/** Warn when non-Unit expression results are unused.
*/
val warnValueDiscard =
warnOption("value-discard", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnOption(
"value-discard",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Warn when an expression is ignored because it is followed by another expression.
*/
Expand All @@ -589,29 +592,44 @@ private[davidgregory084] trait ScalacOptions {
/** Warn if an implicit parameter is unused.
*/
val warnUnusedImplicits =
warnUnusedOption("implicits", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnUnusedOption(
"implicits",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Warn if an explicit parameter is unused.
*/
val warnUnusedExplicits =
warnUnusedOption("explicits", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnUnusedOption(
"explicits",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Warn if an import selector is not referenced.
*/
val warnUnusedImports =
warnUnusedOption("imports", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnUnusedOption(
"imports",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Warn if a local definition is unused.
*/
val warnUnusedLocals =
warnUnusedOption("locals", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnUnusedOption(
"locals",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Warn if either explicit or implicit parameters are unused.
*
* Equivalent to -Wunused:explicits,implicits.
*/
val warnUnusedParams =
warnUnusedOption("params", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnUnusedOption(
"params",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Warn if a variable bound in a pattern is unused.
*/
Expand All @@ -621,7 +639,10 @@ private[davidgregory084] trait ScalacOptions {
/** Warn if a private member is unused.
*/
val warnUnusedPrivates =
warnUnusedOption("privates", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0))
warnUnusedOption(
"privates",
version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)
)

/** Unused warning options (-Wunused:)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ crossScalaVersions := Seq(
Scala213,
Scala30,
Scala31,
Scala33,
Scala33
)

Compile / tpolecatOptionsMode := CiMode
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ val Scala33Options =
"-Wunused:params",
"-Wunused:privates",
"-source",
"3.0-migration",
"3.0-migration"
)

TaskKey[Unit]("checkDevMode") := {
Expand Down

0 comments on commit b7eec74

Please sign in to comment.