commit | b1cf61a127ebbca65a1bfba4e986a4af3a6affb0 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Mon Jul 17 15:10:14 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 17 15:10:14 2023 +0000 |
tree | d97ab74ae065521f35e5fdd12208ae68b3bd4d14 | |
parent | 58a9bb92f28d29d01971e4f97a6ff0f6be192a5c [diff] |
[reporting] Add multi-reporter There are cases in which we want multiple reporters to run at a time, e.g. when uploading to ResultDB we still want to emit to stdout. This provides a nicer way of doing that versus having the ResultDB reporter wrap a basic reporter. Change-Id: If107b2fba50ac66db0ca9c15342b3cd2267722e6 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/879280 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.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.