From c5fe3c5cd9f63263a6badb8d4234b1e4c82d0287 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Mon, 30 Mar 2026 16:46:30 +0200 Subject: [PATCH] Update golangci settings Entire-Checkpoint: b9544ef2c54f --- .golangci.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5a595456..f4b598a7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,7 @@ run: formatters: enable: - - gofumpt # gofumpt formatter + - gofumpt # gofumpt formatter settings: gofumpt: @@ -13,12 +13,16 @@ formatters: linters: enable: - - staticcheck # staticcheck = true - - unparam # unusedparams = true - - nilnil # nilness = true (catches nil returns of nil interface values) - - govet # base vet; nilness + unusedwrite via govet analyzers + - staticcheck # staticcheck = true + - unparam # unusedparams = true + - nilnil # nilness = true (catches nil returns of nil interface values) + - govet # base vet; nilness + unusedwrite via govet analyzers + - stylecheck # naming conventions (ST1003: acronyms, camelCase) settings: + stylecheck: + checks: ["ST1003"] + govet: enable: - nilness @@ -30,7 +34,6 @@ exclusions: - .vscode - .idea - node_modules - rules: - - path: _test\.go - linters: - - unparam + - internal/graph/generated # gqlgen generated code + - internal/api/docs\.go # swaggo generated code + - _test\.go # test files excluded from all linters