Add exceptions to var name length

This commit is contained in:
Kristoffer Dalby 2021-11-15 16:16:16 +00:00
parent 8ae682b412
commit 78cfba0a31
No known key found for this signature in database
GPG Key ID: 09F62DC067465735

View File

@ -28,9 +28,6 @@ linters:
# In progress # In progress
- gocritic - gocritic
# TODO: approve: ok, db, id
- varnamelen
# We should strive to enable these: # We should strive to enable these:
- testpackage - testpackage
- stylecheck - stylecheck
@ -49,3 +46,15 @@ linters:
- cyclop - cyclop
- nestif - nestif
- wsl # might be incompatible with gofumpt - wsl # might be incompatible with gofumpt
linters-settings:
varnamelen:
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-names:
- err
- db
- id
- ip
- ok
- c