commit | d09e85771b373d572b4267e682f23b35c67b74c7 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Wed Aug 30 19:29:25 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 30 19:29:25 2023 +0000 |
tree | 0fa8aeac85bb8724d577cd314312dc7abaf76200 | |
parent | 7ecc1aad7d1ad60b2e796f3c505cdcfacbe38b09 [diff] |
[engine] Disallow calling register_check during load() See rationale in runtime_shac.go. If a valid reason for calling register_check from loaded files arises we can reconsider, but it's easier if we're strict from the beginning. Change-Id: Ic344d0b596b9b5f2d1be9c38e91d68cb339daf61 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/909933 Commit-Queue: Oliver Newman <olivernewman@google.com> Fuchsia-Auto-Submit: 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
Planned features/changes, in descending order by priority:
shac.textproto
shac.star
files.shac
cache directory that checks can write toctx.scm
glob
arguments to ctx.scm.{all,affected}_files()
functions for easier filtering⚠ 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.