scalafix
scalafix copied to clipboard
Refactoring and linting tool for Scala
`RemoveUnused` and the `removeUnused` option for `OrganizedImports` don't seem to recognize the `-Ywarn-unused:imports` and similar options. I had these from `tpolecat`: ``` "-Ywarn-unused:implicits", // Warn if an implicit parameter is...
In order to test out the `ExplicitResultTypes` semantic rule with scalafix CLI like the [example in the docs](https://scalacenter.github.io/scalafix/docs/rules/ExplicitResultTypes.html), one currently has to include `scala-library` in the `--classpath` argument. ``` $...
Some options may cause scalafix to generate code that no longer compiles, e.g. In this document: https://scalacenter.github.io/scalafix/docs/rules/ExplicitResultTypes.html It is noted that: rewriteStructuralTypesToNamedSubclass: .... Beware that this option may produce code...
Currently it's not possible to use rules defined in a SBT modules in other modules of the same multi-modules project *without publishing*, aka not possible to use inter-module dependencies (e.g....
> scalafix version 0.11.0 (built in OrganizeImports) Relative imports are still reordered even if using `importsOrder = Keep`. Having this config: ```hocon rules = [ OrganizeImports ] OrganizeImports { removeUnused...
Originally opened by @mdedetrich in https://github.com/liancheng/scalafix-organize-imports/issues/312 > Some projects that happen to have a very long fully qualified project name and they use nested imports to shorten boilerplate. A good...
Companion for https://github.com/scalacenter/sbt-scalafix/pull/380. As usual with docs, let's hold the merge until the next release.