Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
run:
timeout: 10m
tests: true
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true

linters:
disable-all: true
enable:
- errcheck
- goconst
- gofmt
- govet
- stylecheck
- staticcheck
# - err113
Expand All @@ -23,10 +19,8 @@ linters:
- prealloc
- gosimple
- gosec
- ineffassign
- typecheck
- misspell
- bodyclose
- noctx

linters-settings:
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

MASTER_COMMIT=`git rev-parse --short origin/master`

deps: lintci-deps
deps: lint-deps
go get ./...

all: deps
Expand All @@ -16,11 +16,10 @@ race:

lint:
./build/bin/golangci-lint run ./...
#//--new-from-rev=$(MASTER_COMMIT) ./...

lintci-deps:
lint-deps:
rm -f ./build/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.62.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.64.6

clean:
cd mdbxdist && make clean
Expand Down
4 changes: 2 additions & 2 deletions mdbx/cursor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ func BenchmarkCursor_Set_Sequence(b *testing.B) {
env, _ := setup(b)

var db DBI
keys := make([][]byte, b.N, b.N)
keys := make([][]byte, b.N)
for i := range keys {
keys[i] = make([]byte, 8)
binary.BigEndian.PutUint64(keys[i], uint64(i))
Expand Down Expand Up @@ -1657,7 +1657,7 @@ func BenchmarkCursor_Set_Random(b *testing.B) {
env, _ := setup(b)

var db DBI
keys := make([][]byte, b.N, b.N)
keys := make([][]byte, b.N)
for i := range keys {
keys[i] = make([]byte, 8)
binary.BigEndian.PutUint64(keys[i], uint64(rand.Intn(100*b.N)))
Expand Down
4 changes: 2 additions & 2 deletions mdbx/txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ func BenchmarkTxn_Get_Sequence(b *testing.B) {
env, _ := setup(b)

var db DBI
keys := make([][]byte, b.N, b.N)
keys := make([][]byte, b.N)
for i := range keys {
keys[i] = make([]byte, 8)
binary.BigEndian.PutUint64(keys[i], uint64(i))
Expand Down Expand Up @@ -1370,7 +1370,7 @@ func BenchmarkTxn_Get_Random(b *testing.B) {
env, _ := setup(b)

var db DBI
keys := make([][]byte, b.N, b.N)
keys := make([][]byte, b.N)
for i := range keys {
keys[i] = make([]byte, 8)
binary.BigEndian.PutUint64(keys[i], uint64(rand.Intn(100*b.N)))
Expand Down
Loading