Skip to content

Commit ab315b6

Browse files
committed
scalafmt
1 parent 0d29e83 commit ab315b6

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools/ScipBuildTool.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ import os.SubprocessException
6363
* }}}
6464
*
6565
* Callers are expected to pre-resolve dependencies and pass the resulting
66-
* classpath via the `classpath` field. The `javaHome` field (or the
67-
* `JAVA_HOME` environment variable) must point at a JDK installation that
68-
* provides `bin/javac`. scip-java does not fetch anything from the network.
66+
* classpath via the `classpath` field. The `javaHome` field (or the `JAVA_HOME`
67+
* environment variable) must point at a JDK installation that provides
68+
* `bin/javac`. scip-java does not fetch anything from the network.
6969
*/
7070
class ScipBuildTool(index: IndexCommand) extends BuildTool("SCIP", index) {
7171

tests/buildTools/src/test/scala/tests/ScipBuildToolSuite.scala

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,22 @@ class ScipBuildToolSuite extends BaseBuildToolSuite {
4747
|}
4848
|""".stripMargin,
4949
expectedSemanticdbFiles = 1,
50-
prepare = () => {
51-
val libSrcDir = os.temp.dir(prefix = "scip-classpath-lib")
52-
val libSrc = libSrcDir / "bar" / "Greeter.java"
53-
os.write(
54-
libSrc,
55-
"""|package bar;
56-
|public class Greeter {
57-
| public String greet() { return "hi"; }
58-
|}
59-
|""".stripMargin,
60-
createFolders = true
61-
)
62-
val libClasses = os.Path(workingDirectory) / "lib-classes"
63-
os.makeDir.all(libClasses)
64-
os.proc("javac", "-d", libClasses.toString, libSrc.toString).call()
65-
}
50+
prepare =
51+
() => {
52+
val libSrcDir = os.temp.dir(prefix = "scip-classpath-lib")
53+
val libSrc = libSrcDir / "bar" / "Greeter.java"
54+
os.write(
55+
libSrc,
56+
"""|package bar;
57+
|public class Greeter {
58+
| public String greet() { return "hi"; }
59+
|}
60+
|""".stripMargin,
61+
createFolders = true
62+
)
63+
val libClasses = os.Path(workingDirectory) / "lib-classes"
64+
os.makeDir.all(libClasses)
65+
os.proc("javac", "-d", libClasses.toString, libSrc.toString).call()
66+
}
6667
)
6768
}

tests/snapshots/src/main/scala/tests/SaveSnapshots.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package tests
22

33
object SaveSnapshots {
44
def main(args: Array[String]): Unit = {
5-
val context =
6-
SnapshotContext(tests.snapshots.BuildInfo.snapshotDirectory.toPath)
5+
val context = SnapshotContext(
6+
tests.snapshots.BuildInfo.snapshotDirectory.toPath
7+
)
78
val handler = new SaveSnapshotHandler
89
new MinimizedSnapshotScipGenerator().run(context, handler)
910
handler.onFinished(context)

0 commit comments

Comments
 (0)