commit | 8a59b3be04fe0b4f68684201c67644b6f381d797 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Thu Jul 20 15:21:44 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 20 15:21:44 2023 +0000 |
tree | b5f9222f5bcb61df58ed885241d55a293ab7e382 | |
parent | 642a94f135a88787214197877bafde198a0bf0c1 [diff] |
[cli] Add `shac fmt` command Identical to `shac fix`, but only runs and applies fixes from checks annotated with `formatter = True`. Change-Id: Ic0c963203dc098b1618fb7f6e1f8b165dd444959 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/881734 Commit-Queue: Oliver Newman <olivernewman@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.