From 864ad8d312de70c716fca8e88b324435ddcb7287 Mon Sep 17 00:00:00 2001 From: sue445 Date: Tue, 23 Jul 2024 00:06:32 +0900 Subject: [PATCH] ci: Enforce comments on public methods --- .golangci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 02055aa..ee80ea4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,10 @@ linters-settings: gofmt: revive: + rules: + - name: exported + arguments: + - disableStutteringCheck testifylint: wrapcheck: @@ -10,3 +14,8 @@ linters: - revive - testifylint - wrapcheck + +issues: + include: + - EXC0012 # EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments + - EXC0014 # EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments