Skip to content

Commit aca8af3

Browse files
Fix failing pre-commit checks (#45)
1 parent 86db63b commit aca8af3

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,15 @@ repos:
2222
test/testdata/buffer_test_payload_full.json
2323
)
2424
- id: trailing-whitespace
25-
- repo: https://github.com/dnephin/pre-commit-golang
26-
rev: v0.5.1
27-
hooks:
28-
- id: go-fmt
29-
- id: go-imports
30-
- id: go-cyclo
31-
- id: validate-toml
32-
- id: no-go-testing
33-
- id: golangci-lint
34-
# - id: go-critic
35-
# # args: [-disable=sloppyTypeAssert]
36-
# args: ["-v", "-enable='yodaStyleExpr'", "-disable=sloppyTypeAssert"]
37-
# there is timeout of 30s for go-unit-test and we need more
38-
# - id: go-unit-tests
39-
- id: go-build
40-
- id: go-mod-tidy
41-
- id: go-mod-vendor
4225

4326
- repo: https://github.com/Bahjat/pre-commit-golang
4427
rev: v1.0.3
4528
hooks:
4629
- id: go-fmt-import
4730
- id: go-lint
48-
# - id: go-unit-tests
4931
- id: gofumpt
5032
- id: go-err-check
51-
# - id: go-static-check
52-
# - id: golangci-lint
33+
- id: golangci-lint
34+
- id: go-static-check
5335
# - id: go-ruleguard # requires https://github.com/quasilyte/go-ruleguard
5436
# args: [rules/rules.go] # required

scripts/install-dev-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ go install -v github.com/BurntSushi/toml/cmd/tomlv@latest
88
go install -v mvdan.cc/gofumpt@latest
99
go install -v github.com/kisielk/errcheck@latest
1010
# go install -v github.com/quasilyte/go-ruleguard/cmd/ruleguard@latest
11-
# go install -v honnef.co/go/tools/cmd/staticcheck@latest
11+
go install -v honnef.co/go/tools/cmd/staticcheck@latest

0 commit comments

Comments
 (0)