Scalafix v0.5.7
- #472 Add --diff to only report linter messages from a
git diff
. Useful to enable Scalafix into an existing codebase. For more details, see --diff and --diff-base in --help .
Example usage, find all var
s that are introduced since scalafix v0.5.6
$ scalafix -r DisableSyntax --config-str="DisableSyntax.keywords=[var]" --diff-base=v0.5.6
scalafix-tests/unit/src/test/scala/scalafix/tests/cli/CliGitDiffTests.scala:224:13: error: [DisableSyntax.keywords.var] keywords.var is disabled
private var revision = 0
^
scalafix-core/shared/src/main/scala/scalafix/internal/util/IntervalSet.scala:31:11: error: [DisableSyntax.keywords.var] keywords.var is disabled
var i = start
^
- #467 Include column number in linter messages, by @olafurpg
- #469 Re-enable sbt 1.0 for sbt-scalafix, @olafurpg and @MasseGuillaume
- #486 Fix --diff-base hash resolution, by @MasseGuillaume
- #477 Upgrade to 2.12.4 from 2.12.3, by @olafurpg. While upgrading, we encountered a regression that resulted in an unresolved implicit due to the compiler swallowing a stack overflow error, see scala/bug#10649 for more details.
- #480 Fix false positives in testkit, by @MasseGuillaume