Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] auto-formatting source code ?

I am tired of discussing source code formatting and some JGit contributors don't use Eclipse IDE hence they have a hard time getting formatting right since we currently use the Eclipse auto-formatter.

Hence I propose we adopt the approach the Gerrit project is using and switch from Eclipse auto-formatter to google-java-format [1] and add a Gerrit submit rule and a label "CodeStyle" which the CI can vote on to block changes which weren't properly auto-formatted using google-java-format.

WDYT ?

[1] https://github.com/google/google-java-format

-Matthias

Back to the top