commit | b5559a0dc718e120523e171b053813b391f820da | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Wed May 24 16:37:07 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 24 16:37:07 2023 +0000 |
tree | 1292fce456901d9a9b243f4f9ddb458166c2f49b | |
parent | 0e431db93fa5dd2d0988bcf8e434aa1138fafbe5 [diff] |
[engine] Error out if no shac.star file found Previously shac would hang forever on the `select` on line 276 of run.go when no shac.star files were found in recursive mode, which can confusingly happen if shac.star files do exist but aren't staged in Git yet. Change-Id: Ifdd8692c58c5378c9df2c0e4f0c0079176463afb Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/861256 Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Commit-Queue: Oliver Newman <olivernewman@google.com> Reviewed-by: Marc-Antoine Ruel <maruel@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.