chetanmeh opened a new issue #3931: Configure static code analysis as part of code scan URL: https://github.com/apache/incubator-openwhisk/issues/3931 Currently OpenWhisk build run a [scalafmt][1] check to enforce a consistent code style. We should look into configuring some static code analysis check also to enforce certain implementation rules like using `Se.empty` instead of `Seq()` We have following options 1. [scapegoat][2] - Scala compiler plugin for static code analysis 2. [scalafix][3] - rewrite and linting tool for Scala 3. [scalastyle][4] - Gradle Support - Most of [the rules][5] are around formatting 4. [linter][6] Linter docs link to [many other][7] similar tools Most of the tools do not have direct Gradle support :( [1]: https://scalameta.org/scalafmt/ [2]: https://github.com/sksamuel/scapegoat [3]: https://scalacenter.github.io/scalafix/ [4]: http://www.scalastyle.org/ [5]: http://www.scalastyle.org/rules-1.0.0.html [7]: https://github.com/HairyFotr/linter#future-work [6]: https://github.com/HairyFotr/linter
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services