commit | 4e5080684c7c18b7cee412cee03a23f66fc6f4b4 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Sat Sep 23 00:14:16 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Sep 23 00:14:16 2023 +0000 |
tree | aea9eeb6d36bbebd81c5646f48df982c1bd544a1 | |
parent | a3abbd1c1d7442e7356dee62c60f1f21498da8fb [diff] |
[engine] Disallow *args and **kwargs in check impls I can't think of a good use case for allowing check functions to have arbitrary **kwargs and especially *args, so disallow them for now, especially since it's not clear how they should interact with the `check.with_args()` function. Change-Id: I2ee786e325ec72f4788ae687ab712431194c274d Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/920972 Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Commit-Queue: Oliver Newman <olivernewman@google.com> Reviewed-by: Anthony Fandrianto <atyfto@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.