diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9cc1820..378e8df 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,7 +51,7 @@ jobs: golangci-lint: runs-on: ubuntu-latest env: - GOLANGCI_LINT_VERSION: v2.0.0 + GOLANGCI_LINT_VERSION: v2.4.0 steps: - name: Checkout diff --git a/.golangci.yaml b/.golangci.yaml index a5773f0..a13237b 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -22,10 +22,12 @@ linters: - maintidx # ANOTHER ANOTHER "cyclomatic complexity" lint (see also "cyclop" and "gocyclo") - mnd # detects "magic numbers", which it defines as any number; annoying - nestif # yells when if blocks are nested; what planet do these people come from? + - noinlineerr # disallows `if err := ...`; because why miss an opportunity to leak variables out of scope? - ireturn # bans returning interfaces; questionable as is, but also buggy as hell; very, very annoying - lll # restricts maximum line length; annoying - nlreturn # requires a blank line before returns; annoying - wsl # a bunch of style/whitespace stuff; annoying + - wsl_v5 # a second version of the first annoying wsl; how nice settings: depguard: