Skip to content

Instantly share code, notes, and snippets.

@L-P
Last active December 1, 2025 08:58
Show Gist options
  • Select an option

  • Save L-P/12abde68f59d1bbd106deabb53c3cc07 to your computer and use it in GitHub Desktop.

Select an option

Save L-P/12abde68f59d1bbd106deabb53c3cc07 to your computer and use it in GitHub Desktop.
---
version: "2"
linters:
default: "all"
exclusions:
presets:
- comments
rules:
- linters:
- gosec
text: "G304: Potential file inclusion via variable"
- linters:
- revive
text: "unused-parameter:"
- linters:
- revive
text: "var-naming: avoid meaningless package names"
- linters:
- staticcheck
# Errors often start with a type name.
text: "ST1005: error strings should not be capitalized"
- linters:
- noctx
# gets confused when using sqlx.Tx (which embeds a ctx already)
text: '\(\*database/sql\.Tx\)'
disable:
- "err113" # not designing a lib
- "exhaustruct" # zero values are a good thing
- "funcorder"
- "gochecknoglobals"
- "gochecknoinits"
- "godoclint"
- "godox"
- "inamedparam"
- "mnd"
- "musttag"
- "nlreturn"
- "noinlineerr"
- "nonamedreturns"
- "paralleltest"
- "recvcheck"
- "unparam"
- "unqueryvet"
- "varnamelen"
- "wrapcheck"
- "wsl"
- "wsl_v5"
settings:
depguard:
rules:
mail:
list-mode: lax
files:
- $all
deny:
- pkg: "github.com/golang-jwt/jwt/v4"
desc: "use github.com/golang-jwt/jwt/v5"
- pkg: "github.com/gofrs/uuid"
desc: "use github.com/google/uuid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment