Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbe4ec3

Browse files
committed
Update golangci-lint to v1.20.0
1 parent 84f30c6 commit bbe4ec3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run:
22
# timeout for analysis, e.g. 30s, 5m, default is 1m
3-
deadline: 2m
3+
timeout: 2m
44
linters:
55
enable:
66
#- golint

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ before_install:
3434
- sudo apt-get update
3535
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
3636
# Install golangci-lint
37-
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
37+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.20.0
3838
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
3939

4040
install:

testing/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (d *DockerContainer) Logs() (io.ReadCloser, error) {
199199
})
200200
}
201201

202-
func (d *DockerContainer) portMapping(selectFirst bool, cPort int) (containerPort uint, hostIP string, hostPort uint, err error) {
202+
func (d *DockerContainer) portMapping(selectFirst bool, cPort int) (containerPort uint, hostIP string, hostPort uint, err error) { // nolint:unparam
203203
if !d.containerInspected {
204204
if err := d.Inspect(); err != nil {
205205
d.t.Fatal(err)

0 commit comments

Comments
 (0)