scalafix
scalafix copied to clipboard
sbt-scalafix: better support for `skip := true` when running semantic rules
trafficstars
Originally reported on gitter.
When skip is set to true on the for a given project/configuration, compilation is skipped (through the compile / skip lookup), resulting in missing semanticdb files if semantic rules are requested.
We should either
- honor
skipwhen set at the configuration level and disablescalafix - force compilation by enforcing
compile / skiptofalsewhencompileis triggered byscalafix
Even though (2) might result in scalafix failing because of a compilation error, I think it's better than silently ignoring the project. skip semantics are unclear even for sbt built-in keys, so as a user, it's hard to know how plugins would behave.