commit | a3abbd1c1d7442e7356dee62c60f1f21498da8fb | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri Sep 22 23:43:40 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 22 23:43:40 2023 +0000 |
tree | c15063b99f53d7160562f84588ee50a18f4e1207 | |
parent | fd1ec07dd3ec76ab0a1c0ec4567290a566789ac7 [diff] |
[engine] Add check.with_args(...) method This allows downstream repositories to override arguments to checks in shared checks repositories, such as the path to an executable to run. I also added a `with_name()` method, mainly to make it easier to test `with_args()` (since it's not allowed to register multiple checks with the same name) but it may also be useful for downstream users. Change-Id: I43e50768bbf9c90d3c9aaa28ef447ef330c31d5c Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/919559 Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: 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.