gerrit/contrib
Dave Borowitz 292fa154c1 Format all Java files with google-java-format
Having a standard tool for formatting saves reviewers' valuable time.
google-java-format is Google's standard formatter and is somewhat
inspired by gofmt[1]. This commit formats everything using
google-java-format version 1.2.

The downside of this one-off formatting is breaking blame. This can be
somewhat hacked around with a tool like git-hyper-blame[2], but it's
definitely not optimal until/unless this kind of feature makes its way
to git core.

Not in this change:
* Tool support, e.g. Eclipse. The command must be run manually [3].
* Documentation of best practice, e.g. new 100-column default.

[1] https://talks.golang.org/2015/gofmt-en.slide#3
[2] https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/git-hyper-blame.html
[3] git ls-files | grep java$ | xargs google-java-format -i

Change-Id: Id5f3c6de95ce0b68b41f0a478b5c99a93675aaa3
Signed-off-by: David Pursehouse <dpursehouse@collab.net>
2017-02-07 10:04:39 +09:00
..
convertkey/src/main/java/com/googlesource/gerrit/convertkey Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
themes Add the original SVG images for the Diffy logo 2016-03-16 10:30:46 +01:00
.pep8rc Add configuration file for PEP-8 checker tool 2013-05-17 14:35:47 +09:00
abandon_stale.py abandon_stale: Use pygerrit2 instead of pygerrit 2016-09-23 08:51:05 +02:00
bash_completion Add "threads" command to gerrit.sh bash_completion script 2016-03-23 17:40:35 +00:00
check-valid-commit.py Fix minor python code style issues 2014-12-18 02:51:06 +00:00
fake_ldap.pl Lightweight LDAP server for debugging 2012-12-19 22:28:34 -05:00
git-exproll.sh Don't hardcode bash location 2015-08-26 09:03:24 -06:00
git-push-review git-push-review: Handle reviewers with no explicit config 2016-10-04 11:48:17 -04:00
populate-fixture-data.py Improve populate-fixture-data script 2016-10-10 10:51:07 +02:00
ui-api-proxy.go Add contrib/ui-api-proxy.go for testing UI features with live data. 2013-12-18 09:07:02 -08:00