Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit b3ccab8

Browse files
committed
Add linters
1 parent 525e9df commit b3ccab8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ jobs:
1313
steps:
1414
- checkout
1515
- run: go test ./...
16+
lint:
17+
docker:
18+
- image: circleci/golang:1.11
19+
steps:
20+
- checkout
21+
- run: "! go fmt ./... 2>&1 | read"
22+
- run: "! go vet ./... 2>&1 | read"
23+
- run: go get -u golang.org/x/lint/golint
24+
- run: "! golint ./... 2>&1 | read"
25+
- run: go get golang.org/x/tools/cmd/goimports
26+
- run: "! goimports ./... 2>&1 | read"
27+
- run: "! go mod tidy ./... 2>&1 | read"
1628
workflows:
1729
version: 2
1830
build:

0 commit comments

Comments
 (0)