Repository of custom scalafix rules for Iterable projects.
You can use the rules in your project by adding a dependency on your preferred version of the scalafix-rules
artifact:
ThisBuild / libraryDependencies += "com.iterable" %% "scalafix-rules" % "0.1.0" % ScalafixConfig
This will make the rules available to reference in your .scalafix.conf
file.
You can also run a rule directly from the sbt console without including it in your build.
For example, to run version 0.1.0
of NoFutureTraverse
dynamically in the sbt
console:
scalafix dependency:[email protected]::scalafix-rules:0.1.0
Warns against or disallows the use of Future.traverse
in your Scala code, to prevent a potentially unbounded number of concurrent tasks from being run at once.
rules = [
# ...
NoFutureTraverse
]
NoFutureTraverse {
isError = true # Whether to treat violations as errors (default: false)
}