Bazel: Automatically fix lint errors with buildifier

In recent buildifier versions, lint errors can be fixed automatically:

  $ find . \( -name BUILD -o -name "*.bzl" \) -print \
      | xargs buildifier --lint=fix

This commit was created with Buildifier version 0.22.0:

  $ buildifier --version
buildifier version: 0.22.0
buildifier scm revision: 55b64c3d2ddfb57f06477c1d94ef477419c96bd6

Change-Id: I01c0a9ff5418270e86f3f9206c4c89fa8d174553
Reviewed-by: Alice Kober-Sotzek <>
1 file changed
tree: 8f16a9731cc56c4bde97063416f9905273d70a09
  1. src/
  2. BUCK
  3. BUILD
  4. codereview.settings

ChumpDetector Plugin for Gerrit

To use with the local testsite

ln -s /path/to/chumpdetector-plugin plugins/chumpdetector
NO_BUCKD=1 buck build plugins/chumpdetector && \
  cp buck-out/gen/plugins/chumpdetector/chumpdetector.jar ../gerrit_testsite/plugins/ && \
  ../gerrit_testsite/bin/ restart

To use with the polygerrit-ui server against live data

mkdir -p polygerrit-ui/app/plugins/chumpdetector
ln -s /path/to/chumpdetector-plugin/src/main/resources/static polygerrit-ui/app/plugins/chumpdetector/static
./polygerrit-ui/ -host

You may also need to edit chumpdetectorURL to point directly at instead of being relative.