From fe854e984a41405c5ed3e77919c030cc9704d911 Mon Sep 17 00:00:00 2001 From: Nate Broyles Date: Mon, 4 Jan 2021 13:08:09 -0500 Subject: [PATCH] Don't attempt to lint genny gen'd code --- .golangci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index a60b9fca9d..a9fd5f6e54 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -34,7 +34,8 @@ run: # won't be reported. Default value is empty list, but there is # no need to include all autogenerated files, we confidently recognize # autogenerated files. If it's not please let us know. - skip-files: [] + skip-files: + - ".*_gen.go$" # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": # If invoked with -mod=readonly, the go command is disallowed from the implicit