diff --git a/src/main/scala/uk/org/floop/sparqlTestRunner/SparqlTestRunner.scala b/src/main/scala/uk/org/floop/sparqlTestRunner/SparqlTestRunner.scala index 731f6c8..e9d8b6f 100644 --- a/src/main/scala/uk/org/floop/sparqlTestRunner/SparqlTestRunner.scala +++ b/src/main/scala/uk/org/floop/sparqlTestRunner/SparqlTestRunner.scala @@ -200,7 +200,7 @@ } } - def main(args: Array[String]) { + def main(args: Array[String]): Unit = { val (queryExecution, config, testDirs) = parseArgs(args) val timeSuiteStart = System.currentTimeMillis() val (errors, failures, tests, results) = testDirs.foldLeft[(Int, Int, Int, NodeSeq)](0, 0, 0, Nil) { (a, d) => diff --git a/src/main/scala/uk/org/floop/updateInPlace/Run.scala b/src/main/scala/uk/org/floop/updateInPlace/Run.scala index b528e45..f602084 100644 --- a/src/main/scala/uk/org/floop/updateInPlace/Run.scala +++ b/src/main/scala/uk/org/floop/updateInPlace/Run.scala @@ -24,6 +24,7 @@ import java.nio.file.Files import scala.io.Source import scala.util.Using +import scopt.OptionParser case class Config(dir: File = new File("sparql"), data: File = null) @@ -31,7 +32,7 @@ object Run extends App { val packageVersion: String = getClass.getPackage.getImplementationVersion - val parser = new scopt.OptionParser[Config]("sparql-update-in-place") { + val parser: OptionParser[Config] = new scopt.OptionParser[Config]("sparql-update-in-place") { head("sparql-update-in-place", packageVersion) opt[File]('q', "querydir") .optional() diff --git a/src/test/scala/uk/org/floop/ProtocolTests.scala b/src/test/scala/uk/org/floop/ProtocolTests.scala index 7449d0d..049064d 100644 --- a/src/test/scala/uk/org/floop/ProtocolTests.scala +++ b/src/test/scala/uk/org/floop/ProtocolTests.scala @@ -13,11 +13,11 @@ class ProtocolTests extends AnyFlatSpec with BeforeAndAfterEach { private val wireMockServer = new WireMockServer(wireMockConfig().dynamicPort()) - override def beforeEach { + override def beforeEach: Unit = { wireMockServer.start() } - override def afterEach { + override def afterEach: Unit = { wireMockServer.stop() }