From e2910b18b3381599139282072a944aa5ba55b4ea Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Mon, 30 Mar 2026 16:29:15 +0200 Subject: [PATCH] Fix golangci config Entire-Checkpoint: 1a908bd95cfa --- .golangci.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 3ea8b8ee..5a595456 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,30 +1,36 @@ +version: "2" + run: timeout: 5m +formatters: + enable: + - gofumpt # gofumpt formatter + + settings: + gofumpt: + module-path: github.com/ClusterCockpit/cc-backend + linters: enable: - - gofumpt # gofumpt = true - staticcheck # staticcheck = true - unparam # unusedparams = true - nilnil # nilness = true (catches nil returns of nil interface values) - govet # base vet; nilness + unusedwrite via govet analyzers -linters-settings: - gofumpt: - module-path: github.com/ClusterCockpit/cc-backend + settings: + govet: + enable: + - nilness + - unusedwrite - govet: - enable: - - nilness - - unusedwrite - -issues: - exclude-dirs: +exclusions: + paths: - .git - .vscode - .idea - node_modules - exclude-rules: + rules: - path: _test\.go linters: - unparam