[shac] Make default buildifier tool parameter a function call.

In fuchsia.git, shac checks need access to the 'ctx' variable
in order to determine the location of the prebuilt tools.

This changes the default tool parameter from a string to
a lambda, so this check can be used in both environments.

Tested by pinning this change in fuchsia.git and running the tools.

Change-Id: I41b45e4f0e9bb7bd2c7ac0110612e7589bae8668
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/checks-starlark/+/1040133
Reviewed-by: Darren Chan <chandarren@google.com>
4 files changed
tree: e1dfc998cd875b3c7e8abc836362b95ecdbbddc1
  1. checks/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. LICENSE
  5. OWNERS
  6. README.md
  7. register.star
  8. shac.star
  9. shac.textproto
README.md

Shac Global Checks: Starlark Repository

This repository hosts a suite of checks for performing static analysis and code health operations on starlark-based filetypes.

The checks are hosted in the “checks/” directory, split up based on the host-tool being used.

Please see https://github.com/shac-project/shac for more information on the shac tool and framework.