Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
build: replace gometalinter to golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Mar 2, 2019
1 parent 4c0367e commit 2c278cb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ steps:
image: &image_go golang:1.11.5
commands:
- go vet ./...
- name: gometalinter
image: suzukishunsuke/go-ci:1.1.0
- name: golangci-lint
image: golangci/golangci-lint:v1.15
commands:
- gometalinter ./...
- golangci-lint run
- name: go test
image: *image_go
commands:
Expand Down
18 changes: 18 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
linters:
enable:
- govet
- nakedret
- misspell
- maligned
- interfacer
- unconvert
- goimports
- gofmt
- golint
- varcheck
- structcheck
- goconst
- staticcheck
- golint
disable-all: true
21 changes: 0 additions & 21 deletions .gometalinter.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "go test ./... -race -covermode=atomic",
"fmt": "bash scripts/fmt.sh",
"vet": "go vet ./...",
"lint": "gometalinter ./...",
"lint": "golangci-lint run",
"c": "bash scripts/coverage.sh",
"durl": "bash scripts/durl.sh",
"ci-local": "time drone exec --pipeline build --env-file scripts/drone-local-env --event pull_request"
Expand Down

0 comments on commit 2c278cb

Please sign in to comment.