mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Add exceptions to var name length
This commit is contained in:
parent
8ae682b412
commit
78cfba0a31
1 changed files with 12 additions and 3 deletions
|
@ -28,9 +28,6 @@ linters:
|
|||
# In progress
|
||||
- gocritic
|
||||
|
||||
# TODO: approve: ok, db, id
|
||||
- varnamelen
|
||||
|
||||
# We should strive to enable these:
|
||||
- testpackage
|
||||
- stylecheck
|
||||
|
@ -49,3 +46,15 @@ linters:
|
|||
- cyclop
|
||||
- nestif
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue