Skip to content

Commit c9d65eb

Browse files
vitlindanicolasfara
authored andcommitted
fix: scalafmt reformat
1 parent ea41fb4 commit c9d65eb

File tree

4 files changed

+50
-49
lines changed

4 files changed

+50
-49
lines changed

build.sbt

+40-40
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
ThisBuild / scalafixDependencies ++= Seq(
2-
"com.github.liancheng" %% "organize-imports" % "0.6.0",
3-
)
4-
5-
ThisBuild / homepage := Some(url("https://github.com/atedeg/sbt-ubiquitous-scaladoc"))
6-
ThisBuild / organization := "dev.atedeg"
7-
ThisBuild / licenses := List("MIT" -> url("https://opensource.org/licenses/MIT"))
8-
ThisBuild / wartremoverErrors ++= Warts.allBut(Wart.Any, Wart.Nothing)
9-
10-
resolvers += "jitpack" at "https://jitpack.io"
11-
12-
lazy val startupTransition: State => State = { s: State =>
13-
"conventionalCommits" :: s
14-
}
15-
16-
lazy val root = project
17-
.in(file("."))
18-
.enablePlugins(SbtPlugin)
19-
.settings(
20-
version := "0.1.0-SNAPSHOT",
21-
name := "sbt-ubiquitous-scaladoc",
22-
sbtPlugin := true,
23-
scriptedLaunchOpts := {
24-
scriptedLaunchOpts.value ++
25-
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
26-
},
27-
scriptedBufferLog := false,
28-
semanticdbEnabled := true,
29-
semanticdbVersion := scalafixSemanticdb.revision,
30-
scalacOptions += "-Ywarn-unused-import",
31-
libraryDependencies ++= Seq(
32-
"net.ruippeixotog" %% "scala-scraper" % "2.2.1",
33-
"com.github.Steppschuh" %% "Java-Markdown-Generator" % "1.3.2",
34-
"com.github.pathikrit" %% "better-files" % "3.9.1",
35-
),
36-
Global / onLoad := {
37-
val old = (Global / onLoad).value
38-
startupTransition compose old
39-
},
40-
)
1+
ThisBuild / scalafixDependencies ++= Seq(
2+
"com.github.liancheng" %% "organize-imports" % "0.6.0",
3+
)
4+
5+
ThisBuild / homepage := Some(url("https://github.com/atedeg/sbt-ubiquitous-scaladoc"))
6+
ThisBuild / organization := "dev.atedeg"
7+
ThisBuild / licenses := List("MIT" -> url("https://opensource.org/licenses/MIT"))
8+
ThisBuild / wartremoverErrors ++= Warts.allBut(Wart.Any, Wart.Nothing)
9+
10+
resolvers += "jitpack" at "https://jitpack.io"
11+
12+
lazy val startupTransition: State => State = { s: State =>
13+
"conventionalCommits" :: s
14+
}
15+
16+
lazy val root = project
17+
.in(file("."))
18+
.enablePlugins(SbtPlugin)
19+
.settings(
20+
version := "0.1.0-SNAPSHOT",
21+
name := "sbt-ubiquitous-scaladoc",
22+
sbtPlugin := true,
23+
scriptedLaunchOpts := {
24+
scriptedLaunchOpts.value ++
25+
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
26+
},
27+
scriptedBufferLog := false,
28+
semanticdbEnabled := true,
29+
semanticdbVersion := scalafixSemanticdb.revision,
30+
scalacOptions += "-Ywarn-unused-import",
31+
libraryDependencies ++= Seq(
32+
"net.ruippeixotog" %% "scala-scraper" % "2.2.1",
33+
"com.github.Steppschuh" %% "Java-Markdown-Generator" % "1.3.2",
34+
"com.github.pathikrit" %% "better-files" % "3.9.1",
35+
),
36+
Global / onLoad := {
37+
val old = (Global / onLoad).value
38+
startupTransition compose old
39+
},
40+
)

project/plugins.sbt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
2-
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")
3-
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.0.5")
4-
addSbtPlugin("it.nicolasfarabegoli" % "sbt-conventional-commits" % "2.0.0")
5-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")
6-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
1+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
2+
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")
3+
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.0.5")
4+
addSbtPlugin("it.nicolasfarabegoli" % "sbt-conventional-commits" % "2.0.0")
5+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")
6+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")

src/main/scala/dev/atedeg/UbiquitousScaladoc.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package dev.atedeg
22

33
import java.io.{ File => JFile }
44

5-
import better.files.Dsl.{SymbolicOperations, ls}
5+
import better.files.Dsl.{ ls, SymbolicOperations }
66
import better.files.File
77
import better.files.FileExtensions
88
import net.ruippeixotog.scalascraper.browser.JsoupBrowser
@@ -31,7 +31,8 @@ object UbiquitousScaladoc {
3131

3232
def directoriesFromDir(sourceDir: File): Iterator[File] = ls(sourceDir) filter (_.isDirectory)
3333

34-
def conceptsFromFiles(dir: File): Iterator[Concept] = scaladocFilesFromDir(dir) flatMap (extractConceptFromFile(_).toList)
34+
def conceptsFromFiles(dir: File): Iterator[Concept] =
35+
scaladocFilesFromDir(dir) flatMap (extractConceptFromFile(_).toList)
3536

3637
def scaladocFilesFromDir(dir: File): Iterator[File] = ls(dir) filter isScaladocClassFile
3738

src/main/scala/dev/atedeg/UbiquitousScaladocPlugin.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.atedeg
22

3-
import sbt.{AutoPlugin, Setting, Task}
3+
import sbt.{ AutoPlugin, Setting, Task }
44

55
object UbiquitousScaladocPlugin extends AutoPlugin {
66

0 commit comments

Comments
 (0)