commit | 906b738bb97e78d190746fb697c8f544a1f10789 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri Jun 02 15:07:12 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 02 15:07:12 2023 +0000 |
tree | 66a68035bc34f4c3459367599811e0639989d8a8 | |
parent | ff2fc79ef93045b708fab4d11b547c043c8e8114 [diff] |
[engine] Allow additional callback arguments Relax restrictions on the signature of check callbacks to allow for additional arguments with default values, which will allow downstream library users to override check parameters (e.g. the `simplify` parameter to the `gofmt` check). Also add some additional validation of the callback signature to ensure standardization. Change-Id: I984a4d1002ed81807ca4ff28298dd0e464cc1a51 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/865296 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Shac (Scalable Hermetic Analysis and Checks) is a unified and ergonomic tool and framework for writing and running static analysis checks.
Shac checks are written in Starlark.
go install go.fuchsia.dev/shac-project/shac@latest shac check shac doc shac.star | less
⚠ The source of truth is at https://fuchsia.googlesource.com/shac-project/shac.git and uses Gerrit for code review.
See CONTRIBUTING.md to submit changes.