commit | d8b74dd9c45ec820653561de30ad5a5ba457e7fd | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri Sep 01 15:22:24 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 01 15:22:24 2023 +0000 |
tree | 63df7b2289dbb8f6195bc47dcdd5edd9b034753c | |
parent | e41b94339422e81f5f3df023ac768e90a6129d97 [diff] |
[engine] Force-include cmdline files in scm If files are specified on the command line, make sure to include those files in the scm's "all files", not just "affected files", because "affected files" should always be a subset of "all files". Change-Id: Icfc0980280dc9c54ba3889fb8aa0fc01354aba9d Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/910676 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Reviewed-by: Anthony Fandrianto <atyfto@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.