From 4bbe9cc9361b1c8be06b8ba1f6706048549eb56b Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Thu, 6 Jul 2023 15:35:23 +0300 Subject: [PATCH] [#496] .golangci.yml: Add importas linter Add importas linter Signed-off-by: Alexander Chuprov --- .golangci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 4a3fec6e3..643390075 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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