Skip to content
SPECIFICTION
Get listed

Scalafix vs Sourcery

Scalafix

scalacenter.github.io

Sourcery

sourcery.ai

Side by side

FigureScalafixSourcery
Price from—$12/mo
Free plan—Yes
Free trial—Yes
Open source——
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
API—Yes
Self-hosted—Yes
Plans published04
Spec score · Code Refactoring Tools7.0 (#20)8.6 (#3)
Custom rulesUsers can create custom linter and rewrite rules using the Scalafix public API.Users can define project-wide review rules in a .sourcery.yaml file and use public rulesets such as the Google Python Style Guide.

Plans

Scalafix

No plans published.

Scalafix pricing →

Sourcery

  • Open SourceFree
  • Pro$12 a month
  • Team$24 a month
  • EnterprisePriced on request

Sourcery pricing →

In their own words

Scalafix

Scalafix is a refactoring and linting tool for Scala that automates routine code-health work and one-time migrations. It reports patterns that may lead to production bugs or conflict with coding style, and teams can run rules during code review. Its check option fails when linting or fixes are needed. Syntactic rules run directly on source code; semantic rules need compiled sources with the SemanticDB compiler plugin enabled. Built-in rules include OrganizeImports, RemoveUnused, DisableSyntax, ProcedureSyntax, and RedundantSyntax. Developers can also create custom lint and rewrite rules through its public API. The official build integration is for sbt. Documentation also lists externally maintained integrations for scala-cli, Mill, Gradle, Maven, and Mega-Linter, whose integration supports only built-in syntactic rules. Scalafix is tested on macOS, Linux, and Windows. Listed tested Scala versions are 2.12.21, 2.13.18, and 3.9.0 LTS. It is no longer published for Scala 2.11 or sbt 0.13.x. Community help is available through Discord and Scala Users. The tool is free.

Visit scalacenter.github.io

Sourcery

Sourcery reviews pull requests with AI, returning a summary, review comments and suggested fixes within minutes. Users can apply a suggestion as a change and commit it to the pull request. Security checks cover committed secrets, static-analysis vulnerabilities, infrastructure-as-code misconfigurations, dependencies and licenses. The extension works in VS Code, Cursor, Windsurf and JetBrains editors, and Sourcery supports GitHub, GitLab, GitHub Enterprise Server and self-hosted GitLab. Open Source checks security on every pull request; Open Source and Pro also scan twice a week, while Team includes nightly scans. The public REST API, for listing, reading, counting and bulk-updating security findings and groups, is a Team feature. Open Source is free; Pro is $12 a month billed annually, or $15 per developer per month billed monthly. Team is $24 a month billed annually, or $30 per developer per month billed monthly. A 14-day Team-feature trial is available organization-wide after installation, without a credit card. Sourcery says it does not retain customer code after reviews or use it to train models.

Visit sourcery.ai