Skip to content

GitHub Action for running bazel buildifier on a codebase

Notifications You must be signed in to change notification settings

CareF/bazel-buildifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GitHub Action for running bazel buildifier on a codebase

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 80.8%
  • Dockerfile 19.2%