commit | a809cc033723c140961848298875f404c3195cf0 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri Sep 01 22:20:06 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 01 22:20:06 2023 +0000 |
tree | b943da92f1864ddeffcaf62acc2082f59089a404 | |
parent | c2131be7aa1b27bf81525d33174e09d67bf814c0 [diff] |
[cli] Add --quiet flag to fix and fmt commands Fuchsia's `fx format-code` command should not print any output on success, so for it to be able to run `shac fmt`, there must be a way to disable non-error output for `shac fmt`. This should eventually apply to the `check` command as well for consistency, but for now it's only needed on `fix` and `fmt`, and it was easiest to do it this way because the output of `fix` and `fmt` comes from a different codepath than that of `check`. Change-Id: I6a1f895863523ed3e8ac3d0258f4ff2b07493c32 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/911236 Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Reviewed-by: Anthony Fandrianto <atyfto@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.