commit | 822e10a0aadf6a7fb0e73ecefd07a2df55da3db2 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Tue Jul 11 18:05:36 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 11 18:05:36 2023 +0000 |
tree | 01c2ab36c3f004748ad5f23c313f616d2525a549 | |
parent | ce81d0a53da1da422858d4f59959a9587eaa678b [diff] |
[engine] Make scm tests table-driven Improves consistency and reduces some duplication. Test only change. Change-Id: Ib2ed4bf1d9b62084de5efef5e2d43332a51ba340 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/882971 Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Commit-Queue: Oliver Newman <olivernewman@google.com> Reviewed-by: 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
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.