From a7588e7f57b24ddcb458df159ad43c72773a630c Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:32:38 +0900 Subject: [PATCH 1/3] build: enable nolintlint, paralleltest and revive default rules Co-Authored-By: Claude Sonnet 5.5 --- .golangci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index cff2f06..1d5d87e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,6 +9,8 @@ linters: - gocognit - gocyclo - gosec + - nolintlint + - paralleltest - revive settings: gocognit: @@ -17,6 +19,8 @@ linters: min-complexity: 10 revive: rules: + - name: package-comments + - name: exported - name: argument-limit arguments: [3] - name: max-control-nesting From a21606cb618f03128fe3293c5a9be1cc88e8f24b Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:33:19 +0900 Subject: [PATCH 2/3] fix: satisfy paralleltest and package-comments Co-Authored-By: Claude Sonnet 5.5 --- main.go | 1 + main_test.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/main.go b/main.go index b90ac9e..d398dd4 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,4 @@ +// Command template-go prints a greeting and serves as the starting point for new Go projects. package main import "fmt" diff --git a/main_test.go b/main_test.go index 26c98e6..3f7226d 100644 --- a/main_test.go +++ b/main_test.go @@ -7,5 +7,7 @@ import ( ) func TestGreeting(t *testing.T) { + t.Parallel() + assert.Equal(t, "Hello, World!", greeting()) } From 14e007d76f244598b994213dd0f134d2989bede3 Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:36:01 +0900 Subject: [PATCH 3/3] build: require nolintlint to name the linter and a reason Co-Authored-By: Claude Sonnet 5.5 --- .golangci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 1d5d87e..823aa15 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,6 +17,9 @@ linters: min-complexity: 15 gocyclo: min-complexity: 10 + nolintlint: + require-explanation: true + require-specific: true revive: rules: - name: package-comments