commit | 655d899e0db0ec5d9d85604bdd32abf736822476 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Thu Jul 20 16:17:26 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 20 16:17:26 2023 +0000 |
tree | d9fb059d117fff3df9ea424084d210a9cb55364e | |
parent | 89d15c8efe973e24620884e6718b3d6ef5500a07 [diff] |
[engine] Add `stdin` arg to `ctx.os.exec()` For getting suggested replacements for formatters, it's useful for the formatter to be able to write the formatted code to stdout. Some formatters, such as Black, will only write formatted results to stdout if the input is passed via stdin. Change-Id: I738aa3d236e32404e96ee5cba3230a510a4d6951 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/887593 Reviewed-by: Marc-Antoine Ruel <maruel@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.