mirror of https://github.com/docker/buildx.git
lint: add nolintlint and fix violations
We should be able to detect nolint comments that point to linters that are disabled (such as with the removed structcheck). Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
4e22846e95
commit
a4c3efe783
|
@ -21,6 +21,7 @@ linters:
|
|||
- revive
|
||||
- staticcheck
|
||||
- typecheck
|
||||
- nolintlint
|
||||
disable-all: true
|
||||
|
||||
linters-settings:
|
||||
|
|
|
@ -81,10 +81,7 @@ type commonOptions struct {
|
|||
progress string
|
||||
pull *bool
|
||||
|
||||
// golangci-lint#826
|
||||
// nolint:structcheck
|
||||
exportPush bool
|
||||
// nolint:structcheck
|
||||
exportLoad bool
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue