Skip to content

Commit d271cd3

Browse files
authored
Merge pull request #4 from hmrc/SAOD-531-lint
SAOD-531 Update lint config
2 parents 7780423 + 6046d88 commit d271cd3

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.gitignore

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

33
!.gitignore
44
!.scalafmt.conf
5+
!.scalafix.conf
56
bin
67
.bloop/
78
.cache

.scalafix.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
rules = [ExplicitResultTypes, OrganizeImports, RemoveUnused, DisableSyntax]
2+
3+
OrganizeImports {
4+
targetDialect = Scala3
5+
groupedImports = Keep
6+
coalesceToWildcardImportThreshold = 3
7+
removeUnused = true
8+
groups = [
9+
"*",
10+
"scala.",
11+
"re:javax?\\."
12+
]
13+
}
14+
15+
RemoveUnused {
16+
imports = false
17+
}
18+
19+
DisableSyntax {
20+
noVars = true
21+
noNulls = true
22+
noReturns = true
23+
}

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "2.6.0")
99
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.7")
1010
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.4.4")
1111
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.3")
12-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4")
12+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")

0 commit comments

Comments
 (0)