Skip to content

Enforce common code style and formatting #651

@berezovskyi

Description

@berezovskyi

This will be easier in the long run

https://github.com/google/google-java-format is the only tool that I found that works both in Eclipse and IntelliJ.

Maven integration may make things easy via https://github.com/diffplug/spotless/tree/main/plugin-maven#google-java-format (+ can enforce/check other things). Alternatively, https://github.com/spotify/fmt-maven-plugin - also uses google-java-format under the hood.

Ideally add a CI check/fixer - https://github.com/axel-op/googlejavaformat-action should work in the --set-exit-if-changed mode for us, I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions