Skip to content

Commit e23416d

Browse files
committed
Add scalaFmt and run
1 parent b3e43f8 commit e23416d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2024
-1685
lines changed

.scalafix.conf

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,25 @@ OrganizeImports {
1414
}
1515

1616
rules = [
17-
DisableSyntax,
18-
SparkAutoUpgrade,
19-
MigrateHiveContext,
20-
MigrateToSparkSessionBuilder,
21-
MigrateDeprecatedDataFrameReaderFuns,
22-
AccumulatorUpgrade,
23-
onFailureFix,
24-
ExecutorPluginWarn,
25-
UnionRewrite,
26-
GroupByKeyWarn,
27-
GroupByKeyRewrite,
28-
MetadataWarnQQ,
29-
ScalaTestExtendsFix,
30-
ScalaTestImportChange
17+
// DisableSyntax,
18+
// SparkAutoUpgrade,
19+
// MigrateHiveContext,
20+
// MigrateToSparkSessionBuilder,
21+
// MigrateDeprecatedDataFrameReaderFuns,
22+
// AccumulatorUpgrade,
23+
// onFailureFix,
24+
// ExecutorPluginWarn,
25+
// UnionRewrite,
26+
// GroupByKeyWarn,
27+
// GroupByKeyRewrite,
28+
// MetadataWarnQQ,
29+
// ScalaTestExtendsFix,
30+
// ScalaTestImportChange.
31+
TypelevelUnusedIO
32+
TypelevelMapSequence
33+
TypelevelAs
34+
TypelevelUnusedShowInterpolator
35+
TypelevelFs2SyncCompiler
36+
TypelevelHttp4sLiteralsSyntax
37+
TypelevelIORandomUUID
3138
]

.scalafmt.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version = 3.10.1
2+
runner.dialect = "Scala213"

build.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ lazy val V = _root_.scalafix.sbt.BuildInfo
1616

1717
ThisBuild / scalaVersion := "2.13.16"
1818
addCompilerPlugin(scalafixSemanticdb)
19-
scalacOptions ++= List(
19+
ThisBuild / scalacOptions ++= List(
2020
"-Yrangepos",
2121
"-P:semanticdb:synthetics:on"
2222
)
2323

24+
ThisBuild / semanticdbEnabled := true
2425

2526
name := "examples"
2627

@@ -120,3 +121,6 @@ assemblyMergeStrategy in native := {
120121
assemblyMergeStrategy in core := {
121122
case x => MergeStrategy.first
122123
}
124+
125+
// Typelevel scala format type checks
126+
ThisBuild / scalafixDependencies += "org.typelevel" %% "typelevel-scalafix" % "0.5.0"

0 commit comments

Comments
 (0)