mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +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
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue