Skip to content

Instantly share code, notes, and snippets.

@binaryphile
Created September 13, 2021 21:11
Show Gist options
  • Save binaryphile/a09edc63cf2c59fec8a4f4d0404cc703 to your computer and use it in GitHub Desktop.
Save binaryphile/a09edc63cf2c59fec8a4f4d0404cc703 to your computer and use it in GitHub Desktop.
tell linter not to lint old files
linters-settings:
errcheck:
check-type-assertions: true
goconst:
min-len: 2
min-occurrences: 3
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
govet:
check-shadowing: true
nolintlint:
require-explanation: true
require-specific: true
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- goconst
- gocritic
- gofmt
- goimports
- gomnd
- gocyclo
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nolintlint
- nakedret
- prealloc
- predeclared
- revive
- staticcheck
- structcheck
- stylecheck
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- varcheck
- whitespace
- wsl
run:
issues-exit-code: 1
issues:
new: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment