Secret weapon how to promote your YouTube channel
Get Free YouTube Subscribers, Views and Likes

Unleashing Scalafix potential with custom rules by Brice JAGLIN

Follow
ScalaIO FR

Talk's page https://scala.io/talks/unleashingsca...

Description:
Scalafix is a mature tool which was started nearly 8 years ago by Ólafur Páll Geirsson at the Scala Center (https://www.scalalang.org/blog/2016/..., originally driven by the need to provide a smooth transition from Scala 2.x to Dotty (now known as Scala 3, which provides its own rewriting features).

Beyond builtin rules execution to organize imports or remove unused code, Scalafix is very extensible thanks to its stable and beginnerfriendly API to inspect Scala sources by traversing Scala Abstract Syntax Trees, raise linter errors and/or suggest rewrites to fix them. Like Scalafmt and the Metals language server, it heavily relies on the vibrant Scalameta ecosystem, allowing support of Scala 2.x and Scala 3.

In this talk, we will demystify AST traversal and semantic information lookup to write custom rules and run them locally and/or on CI, through the sbtscalafix plugin or via Scala Steward.

posted by sloinnefg