Skip to content

Universal code formatter -- uses machine learning of code formatting preferences.

Notifications You must be signed in to change notification settings

grosenberg/Adept

Repository files navigation

Adept

A universal code formatter implemented using machine learning of aesthetic preferences. Includes a dedicated comment formatter that supports C/Java style block and line comment syntax, including formal JavaDoc.

The Adept tool is designed for both command line and embedded use.

Current built-in language support

  • ANTLR syntax
  • Java syntax
  • StringTemplate syntax
  • XVisitor syntax

Formatting operations

  • Code formatter
  • Comment formatter
  • Skip header comment formatting option
  • Align code fields
  • Align comments
  • Wrap long lines

Installation

For Maven

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
    <dependency>
        <groupId>net.certiv</groupId>
        <artifactId>adept</artifactId>
        <version>0.3.0</version>
    </dependency>

License

EPL v1

Status

Adept engine core implemented and tested.

A suite of visualization tools serve as development aids as well as examples of embedded use. The FormatView visualization tool provides a working demonstration of embedded use.

FormatView