diff --git a/.travis.yml b/.travis.yml index 21d2215cb..cef5385d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ install: source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION script: - - sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck test + - sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck current/doc core/doc test before_cache: - rm -fv $HOME/.ivy2/.sbt.ivy.lock diff --git a/app/current/src/main/scala/io/scalajs/nodejs/console_module/Console.scala b/app/current/src/main/scala/io/scalajs/nodejs/console_module/Console.scala index 97a9169c1..0c6d6190e 100644 --- a/app/current/src/main/scala/io/scalajs/nodejs/console_module/Console.scala +++ b/app/current/src/main/scala/io/scalajs/nodejs/console_module/Console.scala @@ -46,7 +46,7 @@ class Console protected () extends js.Object { * A simple assertion test that verifies whether `value` is truthy. * If it is not, an `AssertionError` is thrown. * If provided, the error `message` is formatted using `util.format()` and used as the error message. - * @value The value tested for being truthy + * @param value The value tested for being truthy * @param optionalParams The arguments passed to the error message */ def assert(value: js.Any, optionalParams: Any*): Unit = js.native diff --git a/build.sbt b/build.sbt index a71049c18..f0a310743 100644 --- a/build.sbt +++ b/build.sbt @@ -21,10 +21,14 @@ lazy val commonSettings = Seq( "-language:implicitConversions", "-Xlint" ), - scalacOptions in (Compile, doc) ++= Seq( + scalacOptions in Compile in compile ++= Seq( + "-Xfatal-warnings" + ), + scalacOptions in Compile in doc ++= Seq( "-Xfatal-warnings", "-no-link-warnings" - ) + ), + autoAPIMappings := true ) lazy val commonScalaJsSettings = Seq( scalacOptions += "-P:scalajs:sjsDefinedByDefault", @@ -170,7 +174,7 @@ lazy val publishingSettings = Seq( publishArtifact in Test := false, publishArtifact in (Compile, packageDoc) := true, publishArtifact in (Compile, packageSrc) := true, - publishArtifact in packageDoc := false, + publishArtifact in packageDoc := true, pomIncludeRepository := { _ => false }, @@ -182,7 +186,6 @@ lazy val publishingSettings = Seq( ), publishConfiguration := publishConfiguration.value.withOverwrite(false), publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true), - sources in (Compile, doc) := Seq.empty, releaseIgnoreUntrackedFiles := true, releaseProcess := Seq[ReleaseStep]( checkSnapshotDependencies,