Working with Scalafix

Working with Scalafix

First, create a new rule as follows (command from

sbt new scalacenter/scalafix.g8 --repo="Repository Name"

To run the rule against some codebase:

scalafix -r file:scalafix/rules/src/main/scala/fix/YourRule.scala your/code/base/

Where YourRule.scala is the rule you developed and your/code/base is the code base you are running the rule against.

Generated byscaladoc
Copyright (c) 2002-2022, LAMP/EPFL
Social links
Back to top
In this article