Unleashing Scalafix potential with custom rules
summary
Scalafix claims eight years of stable use and actually parses Scala into Scalameta tokens and ASTs, captures compiler info into semanticDB, and produces concrete rewrites like remove-unused imports or adding named parameters; it runs via sbt‑scalafix or as artifacts on CI and integrates with Scala Steward and Metals; the talk shows the semantic lookup, the test kit with expect tests, and that published rules can be applied automatically and reliably.
AI-written summary · about
chapters (6)
- 0:00Scalafix introduction
- 10:37How Scalafix works
- 16:16Custom rules step by step
- 24:28Scalafix API and patches
- 30:53Best practices and pitfalls
- 34:26Q&A








