forked from quic-go/quic-go
use depguard to make sure that qtls is only imported in internal/qtls
This commit is contained in:
@@ -4,6 +4,12 @@ run:
|
|||||||
- internal/handshake/unsafe_test.go
|
- internal/handshake/unsafe_test.go
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
|
depguard:
|
||||||
|
type: blacklist
|
||||||
|
packages:
|
||||||
|
- github.com/marten-seemann/qtls
|
||||||
|
packages-with-error-message:
|
||||||
|
- github.com/marten-seemann/qtls: "importing qtls only allowed in internal/qtls"
|
||||||
misspell:
|
misspell:
|
||||||
ignore-words:
|
ignore-words:
|
||||||
- ect
|
- ect
|
||||||
@@ -12,6 +18,7 @@ linters:
|
|||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
- deadcode
|
- deadcode
|
||||||
|
- depguard
|
||||||
- goconst
|
- goconst
|
||||||
- goimports
|
- goimports
|
||||||
- gosimple
|
- gosimple
|
||||||
@@ -33,3 +40,6 @@ issues:
|
|||||||
- path: qlog/
|
- path: qlog/
|
||||||
linters:
|
linters:
|
||||||
- goconst
|
- goconst
|
||||||
|
- path: internal/qtls
|
||||||
|
linters:
|
||||||
|
- depguard
|
||||||
|
|||||||
Reference in New Issue
Block a user