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

Commit b14d2a6

Browse files
committed
Update golangci config to match keybase/client (plus a little stricter)
1 parent f5415b0 commit b14d2a6

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- run: go get golang.org/x/tools/cmd/goimports
2525
- run: "! goimports ./... 2>&1 | read"
2626
- run: "! go mod tidy ./... 2>&1 | read"
27-
- run: go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
27+
- run: GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.16.0
2828
- run: "! golangci-lint 2>&1 | read"
2929
workflows:
3030
version: 2

.golangci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
linters-settings:
2+
gocritic:
3+
disabled-checks:
4+
- ifElseChain
5+
- elseif
6+
17
linters:
2-
enable:
8+
enable:
9+
- gofmt
310
- gocritic
11+
- unconvert
412
- goconst
513
- gocyclo
614
- misspell

.pre-commit-config.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
repos:
22
- repo: https://github.com/keybase/pre-commit-golang
3-
rev: b8194ff9d85455a702480677ada13ac4dbe94146
3+
rev: 314766a2c26b7f32641addbdb0e7e451320ff1f0
44
hooks:
55
- id: go-fmt
66
- id: go-vet
77
- id: go-lint
8+
- id: golangci-lint
89
- repo: https://github.com/troian/pre-commit-golang
910
rev: ab57c5db44bbeeae1031a2e9c2889367f8387d59
1011
hooks:
@@ -13,7 +14,3 @@ repos:
1314
rev: f16f18866390cba642e8af6073ed59504aeada5c
1415
hooks:
1516
- id: go-mod-tidy
16-
- repo: https://github.com/golangci/golangci-lint
17-
rev: d2b1eea2c6171a1a1141a448a745335ce2e928a1
18-
hooks:
19-
- id: golangci-lint

0 commit comments

Comments
 (0)