Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alejandrohdezma/sbt-scalafix-defaults
- Owner: alejandrohdezma
- License: apache-2.0
- Created: 2020-04-14T12:44:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T05:13:57.000Z (8 months ago)
- Last Synced: 2024-05-21T04:13:46.726Z (8 months ago)
- Topics: sbt-plugin, sbt-scalafix, scala, scalafix
- Language: Scala
- Homepage:
- Size: 507 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
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`.