Skip to content

Commit 291ebf8

Browse files
committed
install scalafix plugin
1 parent 23ec5e8 commit 291ebf8

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

.scalafix.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rules = [
2+
DisableSyntax,
3+
ExplicitResultTypes,
4+
LeakingImplicitClassVal,
5+
NoAutoTupling,
6+
NoValInForComprehension,
7+
ProcedureSyntax,
8+
RedundantSyntax,
9+
RemoveUnused
10+
]

build.sbt

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,27 @@ lazy val guice = (project in file("openai-guice"))
2424
.dependsOn(client)
2525
.aggregate(client_stream)
2626

27-
2827
// POM settings for Sonatype
29-
ThisBuild / homepage := Some(url("https://github.com/cequence-io/openai-scala-client"))
28+
ThisBuild / homepage := Some(
29+
url("https://github.com/cequence-io/openai-scala-client")
30+
)
3031

3132
ThisBuild / sonatypeProfileName := "io.cequence"
3233

33-
ThisBuild / scmInfo := Some(ScmInfo(url("https://github.com/cequence-io/openai-scala-client"), "scm:[email protected]:cequence-io/openai-scala-client.git"))
34+
ThisBuild / scmInfo := Some(
35+
ScmInfo(
36+
url("https://github.com/cequence-io/openai-scala-client"),
37+
"scm:[email protected]:cequence-io/openai-scala-client.git"
38+
)
39+
)
3440

3541
ThisBuild / developers := List(
36-
Developer("bnd", "Peter Banda", "[email protected]", url("https://peterbanda.net"))
42+
Developer(
43+
"bnd",
44+
"Peter Banda",
45+
46+
url("https://peterbanda.net")
47+
)
3748
)
3849

3950
ThisBuild / licenses += "MIT" -> url("https://opensource.org/licenses/MIT")
@@ -74,3 +85,13 @@ addCommandAlias(
7485
"coverageReport"
7586
).mkString(";")
7687
)
88+
89+
90+
inThisBuild(
91+
List(
92+
scalacOptions += "-Ywarn-unused",
93+
scalaVersion := "2.12.15",
94+
semanticdbEnabled := true,
95+
semanticdbVersion := scalafixSemanticdb.revision
96+
)
97+
)

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ logLevel := Level.Warn
22

33
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.15")
44
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
5+
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.0")
56

67
// Test Coverage plugin.
78
// ~

0 commit comments

Comments
 (0)