Skip to content

Commit 80c1e35

Browse files
committed
Change rewrite.sortModifiers.order in .scalafmt.conf
1 parent dd7afb9 commit 80c1e35

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.scalafmt.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,14 @@ rewrite.rules = [
88
SortModifiers
99
PreferCurlyFors
1010
]
11+
12+
# Reorder modifiers according to:
13+
# https://docs.scala-lang.org/style/declarations.html#modifiers
14+
rewrite.sortModifiers.order = [
15+
"override"
16+
"private", "protected"
17+
"implicit"
18+
"final", "sealed"
19+
"abstract"
20+
"lazy"
21+
]

0 commit comments

Comments
 (0)