wlk / sbt-tpolecat

scalac options for the enlightened

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sbt-tpolecat

Build Status License Download

scalac options for the enlightened

sbt-tpolecat configures your scalac options according to @tpolecat's recommendations where possible, according to the Scala version you are using.

It also enables the excellent sbt-partial-unification plugin.

Usage

Add the following to your project's project/plugins.sbt:

addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.2")

If necessary you can filter out scalac options that are unhelpful in the REPL from user-defined tasks or scopes.

By default the plugin only applies this filtering to the console task in the Compile and Test configurations.

scalacOptions.in(Tut) ~= filterConsoleScalacOptions

Caveat

I can't promise this plugin will work for old minor releases of Scala. It has been tested with:

  • 2.12.2
  • 2.11.11
  • 2.10.6

License

All code in this repository is licensed under the Apache License, Version 2.0. See LICENSE.

About

scalac options for the enlightened

License:Apache License 2.0


Languages

Language:Scala 100.0%