Skip to content

Commit

Permalink
Added recommended ScalaCOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjenkinsgit committed Apr 22, 2020
1 parent b77a802 commit 4f8f483
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/g8/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@ lazy val commonSettings =
Seq(
name := "$name$",
scalaVersion := "2.13.1",
organization := "com.example"
organization := "com.example",
scalacOptions ++= Seq(
"-encoding", "UTF-8", // source files are in UTF-8
"-deprecation", // warn about use of deprecated APIs
"-unchecked", // warn about unchecked type parameters
"-feature", // warn about misused language features
"-language:higherKinds", // allow higher kinded types without `import scala.language.higherKinds`
"-Xlint", // enable handy linter warnings
"-Xfatal-warnings" // turn compiler warnings into errors
) // http://downloads.typesafe.com/website/presentations/ScalaDaysSF2015/Toward%20a%20Safer%20Scala%20@%20Scala%20Days%20SF%202015.pdf

)

lazy val scalafmtSettings =
Expand Down

0 comments on commit 4f8f483

Please sign in to comment.