Commit 9dde09b
committed
chore: disable additional Scala 3 specific syntax in scalafmt
Motivation:
Ensure consistent code style across the codebase by explicitly disabling
Scala 3 specific syntax features that could lead to inconsistent formatting.
Modification:
- Add allowQuestionMarkPlaceholder = false to dialectOverride
- Add allowMatchAsExpr = false to dialectOverride
- Document Scala 3 syntax restrictions in CLAUDE.md
Result:
scalafmt now enforces restrictions on Scala 3 specific syntax including
significant indentation, as import rename, * wildcard import, postfix *
vararg splices, ? placeholder, and match as expression.
Tests:
Not run - configuration only
References:
None - code style configuration1 parent 5623d10 commit 9dde09b
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments