mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-28 12:35:21 +00:00
Add exceptions to var name length
This commit is contained in:
parent
8ae682b412
commit
78cfba0a31
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user