HomePhabricator

Bazel: Automatically fix lint errors with buildifier

Authored by David Ostrovsky <david@ostrovsky.org> on Jan 8 2019, 10:11 PM.

Description

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.19.2:

$ buildifier --version

buildifier version: 0.19.2
buildifier scm revision: d39e4d5c25111527369142f16cdb49aa67707313

Change-Id: I1f06cd4596e794981ccc2d9fc2d1da9b17f3973a

Event Timeline

David Ostrovsky <david@ostrovsky.org> committed rGERRITDEPLOY930f29e2fde1: Bazel: Automatically fix lint errors with buildifier (authored by David Ostrovsky <david@ostrovsky.org>).Jan 8 2019, 10:11 PM