Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alejandrohdezma/sbt-fix
- Owner: alejandrohdezma
- License: apache-2.0
- Created: 2019-10-24T08:15:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T05:19:38.000Z (9 months ago)
- Last Synced: 2024-05-21T04:13:46.830Z (9 months ago)
- Topics: sbt-plugin, scala, scalafix, scalafmt
- Language: Scala
- Homepage:
- Size: 527 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
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
```