Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 23b2e86

Browse files
committed
hack,internal: fix staticcheck
The most recent version of staticcheck drops the "--ignore" flag in favor of inline ignore directives, so we need to use those or fix on the older version. Good news is two of our ignore directives are now no longer needed. Updates dominikh/go-tools#514. Updates dominikh/go-tools#515. Fixes #2178.
1 parent 9fa5e4a commit 23b2e86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hack/lint.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ set -e
99
PKGS=$(go list ./... | grep -vF /vendor/)
1010
go vet $PKGS
1111
golint $PKGS
12-
staticcheck -ignore "github.com/golang/dep/internal/test/test.go:U1000 github.com/golang/dep/gps/prune.go:U1000 github.com/golang/dep/manifest.go:U1000" $PKGS
12+
staticcheck $PKGS

internal/test/test.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//lint:file-ignore U1000 unused fns we might want to use later.
6+
57
package test
68

79
import (

0 commit comments

Comments
 (0)