[#496] .golangci.yml: Add importas linter

Add importas linter

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2023-07-06 15:35:23 +03:00
parent 6eefe9747e
commit 4bbe9cc936

View file

@ -31,6 +31,12 @@ linters-settings:
statements: 60 # default 40
gocognit:
min-complexity: 40 # default 30
importas:
no-unaliased: true
no-extra-aliases: false
alias:
pkg: git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object
alias: objectSDK
linters:
enable:
@ -62,5 +68,6 @@ linters:
- funlen
- gocognit
- contextcheck
- importas
disable-all: true
fast: false