Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 757 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 757 Bytes

buildifier

GitHub Workflow Action to run buildifier on bazel files

Optional Inputs:

  • filetypes: bazel filetypes to search for. Defaults to all files.
  • excludes: filter to pass to find via '-not -path' to exclude paths.
  • warnings: filter of warnings to add or exclude to buildifier.

By default, buildifier excludes some warnings, so use warnings: all to include all warnings.

Examples

Simple example, use all buildifier warnings

uses: thompsonja/[email protected]
with:
  warnings: all

Exclude third_party BUILD files

uses: thompsonja/[email protected]
with:
  excludes: ./third_party/*

Only consider BUILD and .bzl files

uses: thompsonja/[email protected]
with:
  filetypes: BUILD,bzl