Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alejandrohdezma/sbt-fix

SBT plugin that enhances scalafix & scalafmt duo
https://github.com/alejandrohdezma/sbt-fix

sbt-plugin scala scalafix scalafmt

Last synced: 3 months ago
JSON representation

SBT plugin that enhances scalafix & scalafmt duo

Awesome Lists containing this project

README

        

# SBT plugin that enhances scalafix & scalafmt duo

## Installation

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

```sbt
addSbtPlugin("com.alejandrohdezma" %% "sbt-fix" % "0.7.2")
```

## Usage

This plugin adds a `fix` command to every project in the build.

This command can be used to launch both `scalafmt` and `scalafix` in all supported configurations.

```sbt
fix
```

It can also be used for checking that all files have been fixed with both tools, exiting with non-zero code on violations, by appending the `--check` argument (which can be used in CI to check formatting easily).

```sbt
fix --check
```