Skip to content

Commit 5e3703a

Browse files
colisweb-gitlabViveLeQuebecCW
authored andcommittedApr 25, 2023
Update scalafmt-core to 3.7.3
1 parent e13a12d commit 5e3703a

File tree

4 files changed

+38
-40
lines changed

4 files changed

+38
-40
lines changed
 

‎.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.5.9"
1+
version = "3.7.3"
22
style = defaultWithAlign
33
maxColumn = 120
44
runner.dialect = scala213

‎build.sbt

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ lazy val scala212 = "2.12.13"
88
lazy val scala213 = "2.13.10"
99
lazy val supportedScalaVersions = List(scala213, scala212)
1010

11-
1211
Global / onChangedBuildSource := ReloadOnSourceChanges
1312

1413
inThisBuild {
1514
List(
1615
organization := "com.colisweb",
17-
scalaVersion := scala213,
16+
scalaVersion := scala213,
1817
crossScalaVersions := supportedScalaVersions,
1918
scalafmtOnCompile := true,
2019
scalafmtCheck := true,

‎project/CompileFlags.scala

+36-36
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,53 @@ object CompileFlags {
44
val flags = Seq(
55
"-deprecation", // Emit warning and location for usages of deprecated APIs.
66
"-encoding",
7-
"utf-8", // Specify character encoding used by source files.
7+
"utf-8", // Specify character encoding used by source files.
88
"-explaintypes", // Explain type errors in more detail.
9-
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
9+
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
1010
"-language:postfixOps",
11-
"-language:existentials", // Existential types (besides wildcard types) can be written and inferred
11+
"-language:existentials", // Existential types (besides wildcard types) can be written and inferred
1212
"-language:experimental.macros", // Allow macro definition (besides implementation and application)
13-
"-language:higherKinds", // Allow higher-kinded types
13+
"-language:higherKinds", // Allow higher-kinded types
1414
"-language:implicitConversions", // Allow definition of implicit functions called views
15-
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
16-
"-Xcheckinit", // Wrap field accessors to throw an exception on uninitialized access.
17-
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
18-
"-Xlint:adapted-args", // Warn if an argument list is modified to match the receiver.
19-
"-Xlint:constant", // Evaluation of a constant arithmetic expression results in an error.
20-
"-Xlint:delayedinit-select", // Selecting member of DelayedInit.
21-
"-Xlint:doc-detached", // A Scaladoc comment appears to be detached from its element.
22-
"-Xlint:inaccessible", // Warn about inaccessible types in method signatures.
23-
"-Xlint:infer-any", // Warn when a type argument is inferred to be `Any`.
24-
"-Xlint:missing-interpolator", // A string literal appears to be missing an interpolator id.
25-
"-Xlint:nullary-override", // Warn when non-nullary `def f()' overrides nullary `def f'.
26-
"-Xlint:nullary-unit", // Warn when nullary methods return Unit.
27-
"-Xlint:option-implicit", // Option.apply used implicit view.
15+
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
16+
"-Xcheckinit", // Wrap field accessors to throw an exception on uninitialized access.
17+
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
18+
"-Xlint:adapted-args", // Warn if an argument list is modified to match the receiver.
19+
"-Xlint:constant", // Evaluation of a constant arithmetic expression results in an error.
20+
"-Xlint:delayedinit-select", // Selecting member of DelayedInit.
21+
"-Xlint:doc-detached", // A Scaladoc comment appears to be detached from its element.
22+
"-Xlint:inaccessible", // Warn about inaccessible types in method signatures.
23+
"-Xlint:infer-any", // Warn when a type argument is inferred to be `Any`.
24+
"-Xlint:missing-interpolator", // A string literal appears to be missing an interpolator id.
25+
"-Xlint:nullary-override", // Warn when non-nullary `def f()' overrides nullary `def f'.
26+
"-Xlint:nullary-unit", // Warn when nullary methods return Unit.
27+
"-Xlint:option-implicit", // Option.apply used implicit view.
2828
"-Xlint:poly-implicit-overload", // Parameterized overloaded implicit methods are not visible as view bounds.
29-
"-Xlint:private-shadow", // A private field (or class parameter) shadows a superclass field.
30-
"-Xlint:stars-align", // Pattern sequence wildcard must align with sequence component.
31-
"-Xlint:type-parameter-shadow", // A local type parameter shadows a type already in scope.
32-
"-Ywarn-dead-code", // Warn when dead code is identified.
33-
"-Ywarn-extra-implicit", // Warn when more than one implicit parameter section is defined.
34-
"-Ywarn-numeric-widen", // Warn when numerics are widened.
35-
"-Ywarn-unused:implicits", // Warn if an implicit parameter is unused.
36-
"-Ywarn-unused:imports", // Warn if an import selector is not referenced.
37-
"-Ywarn-unused:locals", // Warn if a local definition is unused.
38-
"-Ywarn-unused:params", // Warn if a value parameter is unused.
39-
"-Ywarn-unused:patvars", // Warn if a variable bound in a pattern is unused.
40-
"-Ywarn-unused:privates", // Warn if a private member is unused.
41-
"-Ywarn-value-discard" // Warn when non-Unit expression results are unused.
29+
"-Xlint:private-shadow", // A private field (or class parameter) shadows a superclass field.
30+
"-Xlint:stars-align", // Pattern sequence wildcard must align with sequence component.
31+
"-Xlint:type-parameter-shadow", // A local type parameter shadows a type already in scope.
32+
"-Ywarn-dead-code", // Warn when dead code is identified.
33+
"-Ywarn-extra-implicit", // Warn when more than one implicit parameter section is defined.
34+
"-Ywarn-numeric-widen", // Warn when numerics are widened.
35+
"-Ywarn-unused:implicits", // Warn if an implicit parameter is unused.
36+
"-Ywarn-unused:imports", // Warn if an import selector is not referenced.
37+
"-Ywarn-unused:locals", // Warn if a local definition is unused.
38+
"-Ywarn-unused:params", // Warn if a value parameter is unused.
39+
"-Ywarn-unused:patvars", // Warn if a variable bound in a pattern is unused.
40+
"-Ywarn-unused:privates", // Warn if a private member is unused.
41+
"-Ywarn-value-discard" // Warn when non-Unit expression results are unused.
4242
)
4343

4444
val flags212 = Seq(
4545
"-Xfuture", // Turn on future language features.
4646
"-Yno-adapted-args", // Do not adapt an argument list (either by inserting () or creating a tuple) to match the receiver.
4747
"-Xlint:by-name-right-associative", // By-name parameter of right associative operator.
48-
"-Xlint:unsound-match", // Pattern match may not be typesafe.
49-
"-Ypartial-unification", // Enable partial unification in type constructor inference
50-
"-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
51-
"-Ywarn-infer-any", // Warn when a type argument is inferred to be `Any`.
52-
"-Ywarn-nullary-override", // Warn when non-nullary `def f()' overrides nullary `def f'.
53-
"-Ywarn-nullary-unit" // Warn when nullary methods return Unit.
48+
"-Xlint:unsound-match", // Pattern match may not be typesafe.
49+
"-Ypartial-unification", // Enable partial unification in type constructor inference
50+
"-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
51+
"-Ywarn-infer-any", // Warn when a type argument is inferred to be `Any`.
52+
"-Ywarn-nullary-override", // Warn when non-nullary `def f()' overrides nullary `def f'.
53+
"-Ywarn-nullary-unit" // Warn when nullary methods return Unit.
5454
)
5555

5656
val flags213 = Seq(

‎publish.sbt

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ ThisBuild / developers := List(
1212
Developers.cyrilVerdier,
1313
Developers.colasMombrun
1414
)
15-

0 commit comments

Comments
 (0)
Please sign in to comment.