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 --- BUILD | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'BUILD') diff --git a/BUILD b/BUILD index 63dd05118..153464220 100644 --- a/BUILD +++ b/BUILD @@ -1,10 +1,17 @@ load("//tools:defs.bzl", "build_test", "gazelle", "go_path") +load("//tools/nogo:defs.bzl", "nogo_config") load("//website:defs.bzl", "doc") package(licenses = ["notice"]) exports_files(["LICENSE"]) +nogo_config( + name = "nogo_config", + srcs = ["nogo.yaml"], + visibility = ["//:sandbox"], +) + doc( name = "contributing", src = "CONTRIBUTING.md", -- cgit v1.2.3