Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alejandrohdezma/sbt-scalafix-defaults

Default (and sane) configurations for Scalafix
https://github.com/alejandrohdezma/sbt-scalafix-defaults

sbt-plugin sbt-scalafix scala scalafix

Last synced: about 2 months ago
JSON representation

Default (and sane) configurations for Scalafix

Awesome Lists containing this project

README

        

# Default (and sane) configurations for Scalafix

## Installation

Add the following line to your `plugins.sbt` file:

```sbt
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafix-defaults" % "0.13.1")
```

> You'll also need to provide the [`sbt-scalafix` plugin](https://github.com/scalacenter/sbt-scalafix).

## Usage

The included plugin activates automatically. It will add some default dependencies to `scalafixDependencies`, enable `scalafixOnCompile`(except when running on CI) & semanticdb by default and create a `.scalafix.conf` in your project's root folder with [this content](https://github.com/alejandrohdezma/sbt-scalafix-defaults/blob/master/.scalafix.conf).

> You can add the `.scalafix.conf` file to the repository's `.gitignore`, since it's going to be automatically re-created on every build.

### Extra configurations

Extra configurations can be added to a file named `.scalafix-extra.conf` at the root of your repository. The content of this file will be automatically appended to the auto-generated `.scalafix.conf`.