commit | 62acf29a492b8cf23136a3deb549843acd56bb58 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Wed Sep 27 17:26:08 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 27 17:26:08 2023 +0000 |
tree | 7e296634ec4f1d131724f8f8340144326f509a4b | |
parent | e96454eb5f41b95446b2e0f728f344ac2c6ad6c2 [diff] |
[go.mod] Update protobuf-go ... to pull in the following commit, which fixes parsing of unknown repeated message fields in textproto files: https://github.com/protocolbuffers/protobuf-go/commit/6352deccdb59bcc074db0ab49f4d8ba8f3cdb7ee Previously, if shac.textproto contained a repeated message field that was only introduced in a later version of shac, and `min_shac_version` was updated appropriately, `shac check` would produce an error like: shac: proto: syntax error (line 41:1): unexpected token: ] Now protobuf parsing no longer fails, and we get the expected error message: shac: min_shac_version specifies unsupported version "0.1.9", running 0.1.8 Generated by running: 1. go get google.golang.org/protobuf@6352deccdb59bcc074db0ab49f4d8ba8f3cdb7ee 2. go mod tidy 3. go mod vendor Change-Id: I7a32f61967a10bc72ef0eace18aac9d1b726a945 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/922812 Reviewed-by: Anthony Fandrianto <atyfto@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.