kyuubi/.scalafmt.conf
Bowen Liang 0f4906d1b0 [KYUUBI #6674] Bump Scalafmt to 3.9.x
# 🔍 Description
## Issue References 🔗

This pull request fixes #

## Describe Your Solution 🔧

Without this PR:
- use and conform Scalafmt 3.7.x
- forcing all the imports from the same parent package, which is even violation the max length of the line

With this PR:
- use and conform Scalafmt 3.9.x
- Scalafmt 3.8.2 changes the binpack style: https://github.com/scalameta/scalafmt/releases/tag/v3.8.2
- change to `binPack.importSelectors=singleLine`, minimizing the impacts to existed code

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6674 from bowenliang123/scalafmt38.

Closes #6674

d9f4f9ddc [Bowen Liang] 3.9.0
438a07d61 [Bowen Liang] reformat
2df50669c [liangbowen] bump scalafmt to 3.8

Lead-authored-by: Bowen Liang <liangbowen@gf.com.cn>
Co-authored-by: liangbowen <liangbowen@gf.com.cn>
Signed-off-by: Bowen Liang <liangbowen@gf.com.cn>
2025-02-20 11:00:14 +08:00

29 lines
723 B
Plaintext

version = 3.9.0
runner.dialect=scala212
project.git=true
align.preset = none
align.openParenDefnSite = false
align.openParenCallSite = false
align.stripMargin = true
align.tokens = []
assumeStandardLibraryStripMargin = true
danglingParentheses.preset = false
docstrings.style = Asterisk
docstrings.wrap = no
binPack.importSelectors = singleLine
indent.extendSite = 2
literals.hexDigits = Upper
maxColumn = 100
newlines.source = keep
newlines.topLevelStatementBlankLines = []
optIn.configStyleArguments = false
rewrite.imports.groups = [
["javax?\\..*"],
["scala\\..*"],
["(?!org\\.apache\\.kyuubi\\.).*"],
["org\\.apache\\.kyuubi\\..*"]
]
rewrite.imports.sort = scalastyle
rewrite.rules = [Imports, SortModifiers]