Creating custom formatter for Java

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/javahelp

Our great sponsors
  • Sonar - Write Clean Java Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • google-java-format

    Reformats Java source code to comply with Google Java Style.

    I spent most of my development career writing simple CRUD applications, recently I read a fascinating article: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/. It looks like a nice challenge to try creating such a tool. For sure I need first to understand how to build AST etc. I could reuse existing solutions like https://github.com/google/google-java-format, or eclipse fmt, but I would like to understand the whole process, to be able to debug all cases.

  • grammars-v4

    Grammars written for ANTLR v4; expectation that the grammars are free of actions.

    Initially, I was thinking about learning ANT and using it, but I see that they provided grammars for: java8 and java9 https://github.com/antlr/grammars-v4/tree/master/java

  • Sonar

    Write Clean Java Code. Always.. Sonar helps you commit clean code every time. With over 600 unique rules to find Java bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • JDK

    JDK main-line development https://openjdk.org/projects/jdk

    Check out the source code for JavaDoc to see how JavaDoc does AST generation and processing, since uses the AST to generate the HTML documentation.

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