Skip to content

Commit 7ac2044

Browse files
ccoVeilleldez
andauthored
docs: empty alias with importas (#5226)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent b2e24d6 commit 7ac2044

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.next.reference.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,11 @@ linters-settings:
19981998
# see https://github.com/julz/importas#use-regular-expression for details
19991999
- pkg: knative.dev/serving/pkg/apis/(\w+)/(v[\w\d]+)
20002000
alias: $1$2
2001+
# An explicit empty alias can be used to ensure no aliases are used for a package.
2002+
# This can be useful if `no-extra-aliases: true` doesn't fit your need.
2003+
# Multiple packages can use an empty alias.
2004+
- pkg: errors
2005+
alias: ""
20012006

20022007
inamedparam:
20032008
# Skips check for interface methods with only a single parameter.

0 commit comments

Comments
 (0)