From 7926a9e28da8852954961af2aea0a280b6bbd210 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Mon, 26 Oct 2020 11:09:34 -0700 Subject: Add nogo configuration. This splits the nogo rules into a separate configuration yaml file, and allows for multiple files to be provided. Because attrs cannot be passed down to aspects, this required that all findings are propagated up the aspect Provider. This doesn't mean that any extra work must be done, just that this information must be carried through the graph, and some additional starlark complexity is required. PiperOrigin-RevId: 339076357 --- tools/nogo/BUILD | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tools/nogo/BUILD') diff --git a/tools/nogo/BUILD b/tools/nogo/BUILD index 3c6be3339..12b8b597c 100644 --- a/tools/nogo/BUILD +++ b/tools/nogo/BUILD @@ -20,20 +20,14 @@ nogo_stdlib( visibility = ["//visibility:public"], ) -sh_binary( - name = "gentest", - srcs = ["gentest.sh"], - visibility = ["//visibility:public"], -) - go_library( name = "nogo", srcs = [ + "analyzers.go", "build.go", "config.go", - "matchers.go", + "findings.go", "nogo.go", - "register.go", ], nogo = False, visibility = ["//:sandbox"], -- cgit v1.2.3