mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
use depguard to make sure that qtls is only imported in internal/qtls
This commit is contained in:
parent
977dbc828c
commit
0711119b96
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,12 @@ run:
|
|||
- internal/handshake/unsafe_test.go
|
||||
|
||||
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:
|
||||
ignore-words:
|
||||
- ect
|
||||
|
@ -12,6 +18,7 @@ linters:
|
|||
disable-all: true
|
||||
enable:
|
||||
- deadcode
|
||||
- depguard
|
||||
- goconst
|
||||
- goimports
|
||||
- gosimple
|
||||
|
@ -33,3 +40,6 @@ issues:
|
|||
- path: qlog/
|
||||
linters:
|
||||
- goconst
|
||||
- path: internal/qtls
|
||||
linters:
|
||||
- depguard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue