Skip to content

Commit edb6d8d

Browse files
authored
upgrade scalafmt (#1817)
* upgrade scalafmt * fmt
1 parent 0c2d3b7 commit edb6d8d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.8.1
1+
version = 3.9.6
22
runner.dialect = scala3
33
preset = IntelliJ
44
maxColumn = 120

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Cpg.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ contains the entire local variable declaration without initialization, e.g., for
335335
@flatgraph.help.Doc(info = """A location node summarizes a source code location.""")
336336
def location: Iterator[nodes.Location] = wrappedCpg.graph._nodes(23).asInstanceOf[Iterator[nodes.Location]]
337337

338-
/** This node represents a type member of a class, struct or union, e.g., for the type declaration `class Foo{ int i ;
339-
* }`, it represents the declaration of the variable `i`.
338+
/** This node represents a type member of a class, struct or union, e.g., for the type declaration
339+
* `class Foo{ int i ; }`, it represents the declaration of the variable `i`.
340340
*/
341341
@flatgraph.help.Doc(info = """This node represents a type member of a class, struct or union, e.g., for the
342342
type declaration `class Foo{ int i ; }`, it represents the declaration of the

schema2json/src/main/scala/Schema2Json.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ object Schema2Json extends App {
4949
val description = info.getDeclaringClass.getDeclaredMethod("description").invoke(null).asInstanceOf[String]
5050
val providedByFrontend =
5151
info.getDeclaringClass.getDeclaredMethod("providedByFrontend").invoke(null).asInstanceOf[Boolean]
52-
("name" -> name) ~
52+
("name" -> name) ~
5353
("description" -> description) ~
5454
("providedByFrontend" -> providedByFrontend)
5555
}
@@ -106,7 +106,7 @@ object Schema2Json extends App {
106106
.flatMap { edge =>
107107
val schName = schemaName(edge.schemaInfo)
108108
Some(
109-
("name" -> edge.name) ~
109+
("name" -> edge.name) ~
110110
("comment" -> edge.comment) ~
111111
("schema" -> schName)
112112
)
@@ -120,7 +120,7 @@ object Schema2Json extends App {
120120
.flatMap { prop =>
121121
val schName = schemaName(prop.schemaInfo)
122122
Some(
123-
("name" -> prop.name) ~
123+
("name" -> prop.name) ~
124124
("comment" -> prop.comment) ~
125125
("schema" -> schName)
126126
)

0 commit comments

Comments
 (0)