commit | 0d570d7c4e8adca7cea1faa4e7858fa07b38adc6 | [log] [tgz] |
---|---|---|
author | Marc-Antoine Ruel <maruel@google.com> | Fri Sep 08 15:04:23 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 08 15:04:23 2023 +0000 |
tree | 0be62e7604dea8d66626b267432ba37a4bd66f33 | |
parent | 69fcc695ab6cabb4e4ae598386de524cfb8bb8ad [diff] |
[engine] Make unit testing cleaner Move mocking variables into the struct instead of globals. Change-Id: If15f977d0f03d84e830816bae0b2d5b0eeee9e0e Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/913812 Fuchsia-Auto-Submit: Marc-Antoine Ruel <maruel@google.com> Reviewed-by: Oliver Newman <olivernewman@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.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.