-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
26 lines (19 loc) · 895 Bytes
/
.scalafmt.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
version = 3.7.1
runner.dialect = scala3
# force a blank first line
docstrings.blankFirstLine = yes
docstrings.style = SpaceAsterisk
docstrings.forceBlankLineBefore = true
############################################ SPACES ###############################################
spaces.afterKeywordBeforeParen = false # if(a) println("HELLO!")
spaces.afterSymbolicDefs=true # def +++ (a: A): F[A]
spaces.inParentheses = false # foo(a, b)
#################################### Configure literals ###########################################
literals.long=Upper # 123L
literals.float=Lower # 42.0f
literals.double=Lower # 42.0d
literals.hexPrefix=Lower # 0x1234
literals.hexDigits=Lower # 0xabcdef
literals.scientific=Lower # 10e-1
###################################### REWRITE RULES ##############################################
rewrite.rules = [SortModifiers]