forked from bazelbuild/continuous-integration
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite Buildifier support (bazelbuild#1129)
There have been many problems with Buildifier on Bazel CI, mostly stemming from the fact that Buildifier has evolved a lot, but our CI support hasn't kept up. Ideally there would have been many smaller commits over time, but well... This commit implements the following changes: 1. The code now uses a single Buildifier invocation for linting and format checks. 2. We now call Buildifier with --format=json, thus removing the need for error-prone parsing of unstructured text. 3. The old code checked stderr for Buildifier warnings, but at some point Buildifier started printing them to stdout only. 4. Finally we no longer determine the list of source files that should be passed to Buildifier, but simply use Buildifier's recursive mode ("-r ."). Progress towards bazelbuild#1080
- Loading branch information
Showing
1 changed file
with
98 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters