From 272f82ec99cd96b4e2d78d8bb767cbf7d6f0e549 Mon Sep 17 00:00:00 2001 From: Nick DeLuca Date: Fri, 2 Aug 2024 12:08:38 -0700 Subject: [PATCH] chore(lint): Enable localmodule for import linter (#1989) We use three sections through-out the codebase -- standard, default, and localmodule. This change updates the linter to enforce this pattern as files are added or modified. --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 88c4d744..65095e15 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -95,6 +95,7 @@ linters-settings: sections: # defines the order of import sections - standard - default + - localmodule goconst: min-len: 3 # min length for string constants to be checked min-occurrences: 3 # min occurrences of the same constant before it's flagged