commit | 99394d7bec91cb700a693b901c2807722db117ea | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Thu Jul 20 17:51:44 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 20 17:51:44 2023 +0000 |
tree | 0dd6e1d3e038216bdf648ad1362b10d5952c2ff7 | |
parent | ea49ce43869935f17396dfd438c5fc6638851bd1 [diff] |
[engine] Make message optional for formatter findings Findings from checks will pretty much always specify the same message, something like "File not formatted, please run `shac fmt`". Autogenerate this message by default for formatting checks so check writers don't need to write redundant messages. This will also incentivize check writers to mark formatting checks as `formatter=True`, otherwise they'll have to specify a message for every finding. Change-Id: I9b822d4177211d537cc539eacbcc109f4d14db6b Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/887575 Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.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.