Skip to content

Instantly share code, notes, and snippets.

@muesli
Created January 8, 2022 07:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muesli/9b6a5fb4e267449ef65b50dbf5a387bf to your computer and use it in GitHub Desktop.
Save muesli/9b6a5fb4e267449ef65b50dbf5a387bf to your computer and use it in GitHub Desktop.
Extensive golangci-lint config
run:
tests: false
issues:
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- bodyclose
- dupl
- exhaustive
- exportloopref
- goconst
- godot
- godox
- goimports
- gomnd
- gomoddirectives
- goprintffuncname
- gosec
- ifshort
- misspell
- nakedret
- nestif
- nilerr
- noctx
- nolintlint
- prealloc
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- tparallel
- unconvert
- unparam
- whitespace
- wrapcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment