-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.scalafmt.conf
More file actions
74 lines (62 loc) · 2.42 KB
/
.scalafmt.conf
File metadata and controls
74 lines (62 loc) · 2.42 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# ----------------------------------------
# 使用する scalafmt のバージョン
# ----------------------------------------
version = "3.11.1"
# ----------------------------------------
# Scala 3 を使う。ただし中括弧スタイルを前提に。
# ----------------------------------------
runner.dialect = scala3
# ----------------------------------------
# 最大行長(読みやすさと diff のバランス)
# ----------------------------------------
maxColumn = 120
# ----------------------------------------
# インデント設定(すべて2スペースに統一)
# ----------------------------------------
indent.main = 2
indent.callSite = 2
indent.defnSite = 2
indent.extendSite = 2
indent.ctorSite = 2
# ----------------------------------------
# 整列を無効化(diff ノイズ防止)
# ----------------------------------------
align.preset = none
# ----------------------------------------
# 括弧の改行挙動
# ----------------------------------------
danglingParentheses.preset = false
# ----------------------------------------
# 中括弧スタイルの一貫性
# ----------------------------------------
includeCurlyBraceInSelectChains = true
# ----------------------------------------
# アノテーションを複数行で書く際に改行する
# ----------------------------------------
optIn.annotationNewlines = true
# ----------------------------------------
# スペースの挙動(重要な部分のみ設定)
# ----------------------------------------
spaces.inParentheses = false
spaces.afterKeywordBeforeParen = true
spaces.beforeContextBoundColon = true
# ----------------------------------------
# 複数行のリスト・引数などには末尾カンマを付ける
# ----------------------------------------
trailingCommas = always
# ----------------------------------------
# 自動リファクタリングルール
# ----------------------------------------
rewrite.rules = [
SortImports, # import の整理とソート
RedundantParens, # 不要な括弧の削除
RedundantBraces # 不要な中括弧の削除(1行のみ対象)
]
# ----------------------------------------
# Scaladoc コメントスタイル(/** ... */)
# ----------------------------------------
docstrings.style = Asterisk
# ----------------------------------------
# Git リポジトリ用の最適化(.gitignore などの扱い)
# ----------------------------------------
project.git = true