From 0a6732f089ec549bd8cad61895b669ecb0cfc163 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 2 Apr 2025 10:12:08 -0300 Subject: [PATCH] fix: update `.golangci.yml` for v2 --- .golangci.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 911a28b..be61d89 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,33 +1,41 @@ +version: "2" run: tests: false - -issues: - include: - - EXC0001 - - EXC0005 - - EXC0011 - - EXC0012 - - EXC0013 - - max-issues-per-linter: 0 - max-same-issues: 0 - linters: enable: - bodyclose - - dupl + - exhaustive - goconst - godot - godox - - gofumpt - - goimports + - gomoddirectives - goprintffuncname - gosec - misspell + - nakedret + - nestif + - nilerr + - noctx + - nolintlint - prealloc - revive - rowserrcheck - sqlclosecheck + - tparallel - unconvert - unparam - whitespace + - wrapcheck + exclusions: + generated: lax + presets: + - common-false-positives +issues: + max-issues-per-linter: 0 + max-same-issues: 0 +formatters: + enable: + - gofumpt + - goimports + exclusions: + generated: lax