This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 310fd6517887 [SPARK-47533][BUILD] Migrate scalafmt dialect to
`scala213`
310fd6517887 is described below
commit 310fd65178876aa613448d86e64bee16ea3f888f
Author: panbingkun <[email protected]>
AuthorDate: Sun Mar 24 16:41:19 2024 -0700
[SPARK-47533][BUILD] Migrate scalafmt dialect to `scala213`
### What changes were proposed in this pull request?
The pr aims to migrate `scalafmt dialect` from `scala212` to `scala213`.
### Why are the changes needed?
In the Spark version `4.0.0`, the version `scala2.12 ` is no longer
supported. During our migration from `scala2.12` to `scala2.13`, this should
be migrated synchronously.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
- Manually test.
- Pass GA.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #45683 from panbingkun/scalafmt_dialect.
Authored-by: panbingkun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
dev/.scalafmt.conf | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dev/.scalafmt.conf b/dev/.scalafmt.conf
index 6d1ab0243dc5..9a01136dfaf8 100644
--- a/dev/.scalafmt.conf
+++ b/dev/.scalafmt.conf
@@ -26,10 +26,5 @@ optIn = {
danglingParentheses.preset = false
docstrings.style = Asterisk
maxColumn = 98
-runner.dialect = scala212
-fileOverride {
- "glob:**/src/**/scala-2.13/**.scala" {
- runner.dialect = scala213
- }
-}
+runner.dialect = scala213
version = 3.8.0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]