mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
Add exceptions to var name length
This commit is contained in:
parent
8ae682b412
commit
78cfba0a31
@ -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 New Issue
Block a user