What's the current state of static analysis tools for Scala? -
i saw stackoverflow question regarding static analysis in scala, 1 answered in 2009. know, scala tools changing rapidly.
i therefore wondering if familiar current state of static analysis tools in scala tell me if there's, say, findbugs equivalent scala. found findbugs issues many unnecessary warnings scala, having way "object" singleton compiles bytecode, due traits, etc. heard scalastyle not scala version of java's checkstyle, includes bits of findbugs , pmd. if doesn't implement of findbugs and/or pmd, there other tools supplement it? or, scalastyle not style checking, improving code quality?
also, scala's integration with, say, sonar? scala sonar plugin (which works scalastyle) reliable?
here updated answer of august 2014 aimed or work scala.
personally think jvm or java ones end far many false positives, or have inspections aimed @ java specific classes. example, since in scala don't tend use java collections, findbugs collection based inspections not needed. example inspections use of static fields irrelevant in scala.
- scalastyle https://github.com/scalastyle/scalastyle
- scapegoat https://github.com/sksamuel/scalac-scapegoat-plugin
- wart remover https://github.com/typelevel/wartremover
- linter https://github.com/hairyfotr/linter
- cpd https://github.com/sbt/cpd4sbt
- abide https://github.com/scala/scala-abide
- codacy-scalameta https://github.com/codacy/codacy-scalameta
Comments
Post a Comment