Skip to content

Commit a638dc4

Browse files
authored
chore: bump scalafmt to 3.11.5 (#1093)
## Motivation Pick up upstream scalafmt bug fixes and Scala 3 formatting improvements shipped between 3.9.10 and 3.11.5, keeping the formatter aligned with the actively maintained release line. ## Modification - Update the pinned version in `.scalafmt.conf` from `3.9.10` to `3.11.5`. - Apply the only formatting delta produced by the new version: a block-comment alignment in `sjsonnet/src/sjsonnet/Parser.scala`. ## Result - `./mill __.reformat` succeeds on all 36 modules. - `./mill __.checkFormat` reports everything formatted on all 36 modules. - `./mill 'sjsonnet.jvm[_]'.compile` is green on Scala 2.12 / 2.13 / 3.3. ## References - scalafmt releases: https://github.com/scalameta/scalafmt/releases
1 parent 705a675 commit a638dc4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.9.10"
1+
version = "3.11.5"
22

33
docstrings.style = Asterisk
44
maxColumn = 100

sjsonnet/src/sjsonnet/Parser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ class Parser(
903903
/*
904904
* Prevent duplicate fields in list comprehension. See: https://github.com/databricks/sjsonnet/issues/99
905905
*
906-
* If comps._1 is a forspec with value greater than one lhs cannot be a Expr.Str
906+
* If comps._1 is a forspec with value greater than one lhs cannot be a Expr.Str
907907
* Otherwise the field value will be overriden by the multiple iterations of forspec
908908
*/
909909
(lhs, comps) match {

0 commit comments

Comments
 (0)