Skip to content

Commit 2229f23

Browse files
Update scalafmt-core to 3.5.9 (#535)
Co-authored-by: Peter Vlugter <[email protected]>
1 parent 5159eea commit 2229f23

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Scala Steward: Reformat with scalafmt 3.5.9
2+
71a281e0b411e6941332d79abb211ac197105a6a

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: Check project is formatted
2424
uses: jrouly/scalafmt-native-action@v1
2525
with:
26-
version: '3.5.1'
26+
version: '3.5.9'

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.5.1
1+
version = 3.5.9
22
runner.dialect = scala213
33
maxColumn = 120
44
docstrings.style = Asterisk

core/src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ class ParadoxProcessor(
442442
lazy val getProperties: util.Map[String, String] = context.properties.asJava
443443
// So you can $if(page.property_is.("project.license").("Apache-2.0"))$
444444
lazy val getProperty_is: util.Map[String, util.Map[String, Boolean]] = context.properties.map { case (key, value) =>
445-
(key -> Map(value -> true).asJava)
445+
key -> Map(value -> true).asJava
446446
}.asJava
447447

448448
private def link(location: Option[Location[Page]]): PageTemplate.Link = PageLink(location, page, writer, context)

core/src/main/scala/com/lightbend/paradox/markdown/TableOfContents.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class TableOfContents(
180180
case page: Page =>
181181
val isActive = active.exists(_.tree.label.path == page.path)
182182
(
183-
if (headers && isActive) (page.path + page.h1.path) else page.path,
183+
if (headers && isActive) page.path + page.h1.path else page.path,
184184
(if (isActive) List("active") else Nil) :+ "page"
185185
)
186186
case header: Header => (header.path, List("header"))

testkit/src/main/scala/com/lightbend/paradox/markdown/MarkdownTestkit.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ abstract class MarkdownTestkit {
8080

8181
def createFileTemplates(dir: Path, templates: Seq[(String, String)]) = {
8282
val suffix = ".st"
83-
(templates map {
83+
templates map {
8484
case (path, content) if path.endsWith(suffix) =>
8585
val writer = new PrintWriter(new File(dir.toString + "/" + path))
8686
writer.write(prepare(content))
8787
writer.close()
88-
})
88+
}
8989
}
9090

9191
def writerContextWithProperties(properties: (String, String)*): Location[Page] => Writer.Context = { location =>

0 commit comments

Comments
 (0)