kyuubi/.scalafmt.conf
liangbowen 8e91601909 [KYUUBI #4206] Bump scalafmt from 3.6.1 to 3.7.1
### _Why are the changes needed?_

- Bump scalafmt from 3.6.1 to 3.7.1, release notes: https://github.com/scalameta/scalafmt/releases/tag/v3.7.1
- Changes to existing code seem coming from the dependency bump of scalameta 4.7.x in scalafmt 3.7.0+ (https://github.com/scalameta/scalafmt/releases/tag/v3.7.0) used for parsing scala code and looking up the nested constructor usages.
- Notice: `spotless-maven-plugin` is now pinned on 2.30.0 as from 2.31.0 requiring Java 11+, and 2.31.0 is using `scalafmt` 3.7.1 by default, see (https://github.com/diffplug/spotless/blob/main/plugin-maven/CHANGES.md#2310---2023-01-26)

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4206 from bowenliang123/scalafmt-3.7.1.

Closes #4206

fd7f498e [liangbowen] bump scalafmt from 3.6.1 to 3.7.1

Authored-by: liangbowen <liangbowen@gf.com.cn>
Signed-off-by: liangbowen <liangbowen@gf.com.cn>
2023-01-29 14:57:29 +08:00

29 lines
715 B
Plaintext

version = 3.7.1
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
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]