Which static analysis tool do you use for Scala?

This page summarizes the projects mentioned and recommended in the original post on /r/scala

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Scapegoat

    Scala compiler plugin for static code analysis

    The support for scala 3 has been requested a while ago: https://github.com/scapegoat-scala/scapegoat/issues/521 but the original author has stepped down as a maintainer https://github.com/scapegoat-scala/scapegoat/issues/567 and recently most of the changes are just dependency updates.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • Wartremover

    Flexible Scala code linting tool

    There is also wartremover but you cannot run it separately from your compile command.

  • sonar-scala

    Discontinued A free and open-source SonarQube plugin for static code analysis of Scala projects.

    You may use sonar-scala, or the independent pieces it consumes like Scapegoat.

  • sbt-tpolecat

    scalac options for the enlightened

    However, after a while, I found that most of the things I needed were already covered by the compiler. And that Rob's (aka tpolecat) list of compiler options provided all the ones I needed for my style of coding. I Then learn that there was this sbt plugin that managed the list for me and also took care of changing the options according to the Scala version.

  • scalafix-organize-imports

    Discontinued A CI-friendly Scalafix semantic rule for organizing imports

    extensible with community plugins, we use scalafix-organize-imports and scaluzzi

  • Scalafix

    Refactoring and linting tool for Scala

    Scalafix

  • scaluzzi

    Additional rules for Scalafix. The part of scalazzi rules.

    extensible with community plugins, we use scalafix-organize-imports and scaluzzi

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • The thousand dollars one line mistake - SBT + PlayFramework

    1 project | dev.to | 1 Jul 2024
  • Is Scala to Java the same relationship as TypeScript has with ECMAScript?

    2 projects | /r/scala | 8 May 2023
  • Scala Center Roadmap for 2023 and Beyond

    1 project | /r/scala | 31 Jan 2023
  • The size of sbt became big

    2 projects | /r/scala | 29 Jan 2023
  • sbt 1.8.0 released

    2 projects | /r/scala | 11 Nov 2022