Skip to content

Commit

Permalink
Fix drone lint check error.
Browse files Browse the repository at this point in the history
  • Loading branch information
studyzy committed Oct 21, 2019
1 parent 8c947ff commit a034d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ steps:
- name: test
image: golang
commands:
- GO111MODULE=off go get github.com/mattn/goveralls
- goveralls -service drone.io
- go test ./...
- name: lint
image: golang
commands:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.19.0
- golangci-lint run .
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ issues:
exclude-rules:
- linters:
- golint
text: "JSON|API|URL"
text: "JSON|API|URL|ID"
- linters:
- stylecheck
text: "JSON|API|URL|ID"
# # Exclude some linters from running on tests files.
# - path: _test\.go
# linters:
Expand Down

0 comments on commit a034d9c

Please sign in to comment.