Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
6bfb659
build(deps): Bump github.com/tendermint/tendermint (#534)
dependabot[bot] Aug 19, 2022
7b3e085
Update .golangci.yml (#540)
faddat Aug 23, 2022
3198de9
linting fixes (#536)
faddat Aug 23, 2022
3ba16d7
Update lint.yml (#535)
faddat Aug 26, 2022
98ea72d
cosmos db (#538)
faddat Aug 26, 2022
f309b86
Create .gitpod.yml (#537)
faddat Aug 29, 2022
75e10a3
remove extra action (#541)
tac0turtle Aug 29, 2022
f583f7f
Gofumpt cosmosdb (#539)
faddat Aug 29, 2022
f760158
lint (#543)
tac0turtle Aug 29, 2022
d57c0d2
build(deps): Bump github.com/golangci/golangci-lint (#544)
dependabot[bot] Aug 30, 2022
807f8c5
move keyformat and fastnode to specific fodlers (#542)
tac0turtle Aug 31, 2022
32b1cbc
Upgrade to fast IAVL with multi batches (#531)
giskook Sep 8, 2022
f55d258
benchmarks: on missing/unlinked DB -tags=cleveldb,rocksdb, just log e…
odeke-em Sep 8, 2022
3e1be0d
refactor: migrate to cosmos/gogoproto (#551)
julienrbrt Sep 8, 2022
42b2471
benchmarks: only log the spammy iterations completed message if -v is…
odeke-em Sep 9, 2022
fbcc232
Update README.md (#557)
faddat Sep 10, 2022
200422d
ci: add lint PR action (#558)
julienrbrt Sep 11, 2022
fcab556
feat: Add `skipFastStorageUpgrade` to `MutableTree` to control fast s…
adu-crypto Sep 15, 2022
6e3efc1
build(deps): Bump github.com/cosmos/gogoproto from 1.4.1 to 1.4.2 (#560)
dependabot[bot] Sep 15, 2022
a762ef5
remove benchmark results (#565)
faddat Sep 15, 2022
f50272d
ci: remove codecov (#563)
tac0turtle Sep 15, 2022
4313143
feat: add iterator concurrency tests (#566)
facundomedica Sep 23, 2022
d581938
build(deps): Bump amannn/action-semantic-pull-request from 4.5.0 to 4…
dependabot[bot] Sep 26, 2022
9cf5d7a
fix: accept both relative and absolute paths in iaviewer (#574)
facundomedica Sep 28, 2022
ae4aeee
build(deps): Bump github.com/golangci/golangci-lint from 1.49.0 to 1.…
dependabot[bot] Oct 4, 2022
797c8a9
chore: prepare for release (#576)
tac0turtle Oct 5, 2022
6c1300a
chore: don't use deprecated linters (#578)
faddat Oct 6, 2022
5c85bf7
Merge pull request from GHSA-gf4j-mf57-3762
tac0turtle Oct 8, 2022
15bc87e
chore: add changelog 0.19.x (#581)
tac0turtle Oct 8, 2022
aff6366
chore: errors update (#580)
tac0turtle Oct 10, 2022
1ac3c34
build(deps): Bump amannn/action-semantic-pull-request from 4.6.0 to 5…
dependabot[bot] Oct 12, 2022
b95695e
build(deps): Bump amannn/action-semantic-pull-request from 5.0.0 to 5…
dependabot[bot] Oct 15, 2022
78a5f11
refactor: disable remaining fast node logic in mutable tree (#589)
p0mvn Oct 16, 2022
a08b5a1
build(deps): Bump amannn/action-semantic-pull-request from 5.0.1 to 5…
dependabot[bot] Oct 18, 2022
401725a
fix: remove `RangeProofs` (#586)
cool-develope Oct 19, 2022
cebfdec
build(deps): Bump github.com/tendermint/tendermint from 0.34.21 to 0.…
dependabot[bot] Oct 19, 2022
361d291
ci: Enable benchmarks in Github Actions (#546)
faddat Oct 22, 2022
48d631a
build(deps): Bump github.com/golangci/golangci-lint from 1.50.0 to 1.…
dependabot[bot] Oct 24, 2022
9c79319
fix: add field to struct (#599)
tac0turtle Oct 27, 2022
07d1535
chore: add changelog entry (#601)
tac0turtle Oct 28, 2022
5170624
build(deps): Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#595)
dependabot[bot] Oct 30, 2022
f5d856f
chore: update template with sdk template (#603)
tac0turtle Oct 30, 2022
c64ca70
chore: cleanup of unneeded aliases (#607)
tac0turtle Oct 30, 2022
3da7063
chore: remove unneeded deps (#604)
tac0turtle Oct 30, 2022
58a0467
Add CodeQL workflow for GitHub code scanning (#614)
lgtm-com[bot] Nov 6, 2022
172c349
build(deps): Bump golang.org/x/crypto from 0.1.0 to 0.2.0 (#617)
dependabot[bot] Nov 10, 2022
4b0dac8
build(deps): Bump golang.org/x/crypto from 0.2.0 to 0.3.0 (#621)
dependabot[bot] Nov 17, 2022
c00c250
feat: optimize memory using when `Importer` works. (#625)
prolenking Nov 23, 2022
da766a3
chore: add mergify backport (#628)
tac0turtle Nov 24, 2022
2777659
fix: Prevent newExporter crash if tree.ndb is nil (#622)
chillyvee Nov 25, 2022
12381ab
build(deps): Bump github.com/confio/ics23/go from 0.7.0 to 0.9.0 (#634)
dependabot[bot] Nov 29, 2022
e144f08
fix: commit the ndb in LoadVersionForOverwriting (#640)
Dec 6, 2022
992120d
build(deps): Bump golang.org/x/crypto from 0.3.0 to 0.4.0 (#644)
dependabot[bot] Dec 8, 2022
d4086fe
feat: speed up rollback command (#636)
Dec 12, 2022
7c04bc4
fix: missing lock in DeleteVersionsFrom (#642)
Dec 14, 2022
b97511a
chore: lint iavl (#651)
faddat Dec 28, 2022
25f808f
build(deps): Bump golang.org/x/crypto from 0.4.0 to 0.5.0 (#655)
dependabot[bot] Jan 5, 2023
98e2b0d
feat: Add API `TraverseStateChanges` to extract state changes from ia…
Jan 10, 2023
e9ee47e
test: add a unit test to demonstrate a un-intuitive behavior (#660)
Jan 18, 2023
d8e1e38
feat: make `LazyLoadVersion` validate `InitialVersion` the same as `L…
Jan 18, 2023
bc94180
feat: remove orphans (#646)
cool-develope Jan 23, 2023
139c2c4
feat: Add unit test for traverseOrphans (#663)
kocubinski Jan 23, 2023
c90c009
perf: Optimize diff algorithm with insights from #646 (#658)
Jan 27, 2023
66c167f
chore: fix mergify (#667)
tac0turtle Jan 29, 2023
f589660
add .20 to mergify (#668)
tac0turtle Jan 30, 2023
3c740b1
build(deps): Bump github.com/emicklei/dot from 1.2.0 to 1.3.0 (#671)
dependabot[bot] Jan 31, 2023
5b60aeb
optim: remove the buffer when compute node hash (#670)
Jan 31, 2023
c54062c
build(deps): Bump github.com/golangci/golangci-lint from 1.50.1 to 1.…
dependabot[bot] Feb 2, 2023
cf8a814
build(deps): Bump golang.org/x/crypto from 0.5.0 to 0.6.0 (#680)
dependabot[bot] Feb 9, 2023
c9777c6
build(deps): Bump amannn/action-semantic-pull-request from 5.0.2 to 5…
dependabot[bot] Feb 16, 2023
7fcfca7
build(deps): Bump github.com/golangci/golangci-lint from 1.51.0 to 1.…
dependabot[bot] Feb 16, 2023
ad8c0eb
chore: add release/v0.21.x (#684)
julienrbrt Feb 20, 2023
c61d1de
feat: add adr-001 for node key refactoring (#608)
cool-develope Feb 21, 2023
120ac47
build(deps): Bump github.com/golangci/golangci-lint from 1.51.1 to 1.…
dependabot[bot] Feb 21, 2023
77db563
build(deps): Bump github.com/emicklei/dot from 1.3.0 to 1.3.1 (#687)
dependabot[bot] Feb 22, 2023
de851ac
build(deps): Bump github.com/cosmos/cosmos-db from 0.0.0-202208220601…
dependabot[bot] Feb 24, 2023
0c8baf0
deps: replace confio/ics23 with cosmos/ics23 (#693)
crodriguezvega Feb 25, 2023
d2dd845
build(deps): Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#694)
dependabot[bot] Feb 28, 2023
de1532f
feat: add api to save `ChangeSet` (#695)
cool-develope Mar 2, 2023
a9766cf
build(deps): Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#699)
dependabot[bot] Mar 7, 2023
e46665c
feat: refactor the node key as `version + local nonce(seq id)` (#676)
cool-develope Mar 13, 2023
e6ac16c
docs: changelog update (#705)
tac0turtle Mar 14, 2023
69a329c
build(deps): Bump amannn/action-semantic-pull-request from 5.1.0 to 5…
dependabot[bot] Mar 16, 2023
df2b3b1
build(deps): Bump actions/setup-go from 3 to 4 (#709)
dependabot[bot] Mar 16, 2023
a945f5f
docs: Minor cleanup (#702)
pysel Mar 19, 2023
d014fbc
update mergify (#713)
tac0turtle Mar 21, 2023
04b31b0
fix: empty root loading failed (#712)
cool-develope Mar 21, 2023
842d58b
build(deps): Bump github.com/golangci/golangci-lint from 1.51.2 to 1.…
dependabot[bot] Mar 21, 2023
772d57a
docs: Update mutable_tree.md (#715)
pysel Mar 23, 2023
c97fb29
build(deps): Bump github.com/golangci/golangci-lint from 1.52.0 to 1.…
dependabot[bot] Mar 23, 2023
d972cbe
build(deps): Bump github.com/golangci/golangci-lint from 1.52.1 to 1.…
dependabot[bot] Mar 27, 2023
8583864
build(deps): Bump github.com/emicklei/dot from 1.3.1 to 1.4.1 (#721)
dependabot[bot] Mar 28, 2023
611c5e8
build(deps): Bump github.com/emicklei/dot from 1.4.1 to 1.4.2 (#722)
dependabot[bot] Mar 29, 2023
b544dc0
feat: more compact exported snapshot (#703)
Apr 6, 2023
4f09420
build(deps): Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#725)
dependabot[bot] Apr 7, 2023
144bfd1
fix: linter suggestions in go 1.20 (#731)
Apr 10, 2023
61be28a
feat: make ChangeSet and KVPair protobuf serializable (#726)
Apr 10, 2023
c68bc6f
perf: Make debugging a constant, to allow deadcode elimination (#727)
ValarDragon Apr 10, 2023
c2154ac
refactor!: Move color to its own package (#736)
ValarDragon Apr 11, 2023
702c551
chore: fix branch name in mergify (#738)
tac0turtle Apr 11, 2023
20ec75e
fix: run benchmark only with two dbs (#740)
tac0turtle Apr 11, 2023
85a123c
refactor: add logger (#735)
tac0turtle Apr 12, 2023
b186ae7
perf: Add resetBatch optimization to fastnode genesis (#730)
ValarDragon Apr 13, 2023
492b2c9
feat: Batch with flusher (#653)
catShaark Apr 13, 2023
32a89a0
fix: `traverseNodes` unexpected behaviour (#718)
catShaark Apr 14, 2023
60c3678
fix: import forward version (#717)
cool-develope Apr 17, 2023
62e4c4e
build(deps): Bump github.com/cosmos/ics23/go from 0.9.1-0.20221207100…
dependabot[bot] Apr 18, 2023
ab076bd
build(deps): Bump google.golang.org/protobuf from 1.28.1 to 1.30.0 (#…
dependabot[bot] Apr 18, 2023
9944770
Create SECURITY.md (#742)
greg-szabo Apr 20, 2023
64ffc27
build(deps): Bump cosmossdk.io/log from 1.0.0 to 1.1.0 (#753)
dependabot[bot] Apr 30, 2023
1f3fb70
refactor: silence Go 1.20 deprecation warnings around math/rand
elias-orijtech May 3, 2023
da6a47f
ci: update to Go 1.20
elias-orijtech May 3, 2023
f38cc9e
build(deps): bump minimum Go version to 1.20
elias-orijtech May 3, 2023
44d75ae
perf: safer implementations for unsafe internal/bytes functions
elias-orijtech May 3, 2023
17323ba
perf: remove use of unsafe function
elias-orijtech May 3, 2023
6aa391f
perf: limit use of unsafe UnsafeBytesToStr
elias-orijtech May 3, 2023
d0241db
perf: remove use of unsafe functions from UnsavedFastIterator
elias-orijtech May 3, 2023
c8a1c56
build(deps): Bump golang.org/x/crypto from 0.8.0 to 0.9.0
dependabot[bot] May 9, 2023
747bc12
perf: Make ResetBatch accumulate a minimum batch size (#729)
ValarDragon May 10, 2023
b6f1e91
chore: various cleanups
elias-orijtech May 10, 2023
829de96
chore: defer mutex unlocks in internal/rand/Rand methods
elias-orijtech May 10, 2023
bdf3630
chore: complete unfinished documentation for keyformat.NewKeyFormat
elias-orijtech May 10, 2023
1c8eb28
docs: add cosmos sdk compatibility table (#769)
julienrbrt May 13, 2023
41c46c9
feat: add `WorkingVersion` API (#770)
May 16, 2023
6e98074
fix: memory leak in `Import` (#773)
May 19, 2023
f706bde
feat: implement the `lazy_set` feature (#750)
cool-develope May 19, 2023
fd9d185
add the legacydump binary (#779)
cool-develope May 25, 2023
6182ebe
build(deps): Bump golang.org/x/net from 0.4.0 to 0.7.0 in /cmd/legacy…
dependabot[bot] May 25, 2023
4747c80
build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#775)
dependabot[bot] May 26, 2023
657ff4d
build(deps): Bump github.com/cosmos/cosmos-db from 1.0.0-rc.1 to 1.0.…
dependabot[bot] May 26, 2023
a213e88
refactor: Drop error results from functions that never fail (#777)
elias-orijtech May 30, 2023
dc8e12e
fix: the failure of load the legacy empty root (#780)
cool-develope May 30, 2023
bcdaadf
build(deps): remove golangci-lint from deps (backport #787) (#788)
mergify[bot] Jun 2, 2023
78072ce
fix: rootKey empty check by len equals 0 (backport #801) (#809)
mergify[bot] Aug 10, 2023
715d878
chore: retract v0.21.x line (backport #812) (#813)
mergify[bot] Aug 10, 2023
ec9839f
feat: Uses BatchWithFlusher in iavl tree (backport #807) (#816)
mergify[bot] Aug 11, 2023
4637357
refactor: make batcher configurable (backport #815) (#818)
mergify[bot] Aug 11, 2023
8ae3597
perf: flush import batches in parallel (backport #793) (#820)
mergify[bot] Aug 23, 2023
6baf530
build(deps): Bump golang.org/x/crypto from 0.11.0 to 0.12.0 (backport…
mergify[bot] Aug 23, 2023
9d71b8a
build(deps): Bump cosmossdk.io/log from 1.1.0 to 1.2.0 (backport #804…
mergify[bot] Aug 23, 2023
4827590
feat: Support concurrency for IAVL and fix Racing conditions (backpor…
mergify[bot] Aug 23, 2023
f528c1f
changelog prep for v1.0.0 (#824)
tac0turtle Aug 23, 2023
fdc599d
fix: data race of latestVersion (backport #834) (#835)
mergify[bot] Sep 13, 2023
c8922db
fix(nodedb): prevent deadlock by releasing DeleteVersionsFrom mutex o…
mergify[bot] Oct 17, 2023
d5b3b1e
fix: safe batch write (backport #838) (#845)
mergify[bot] Oct 20, 2023
72911cb
refactor: remove unnecessary/repeated/pedantic code in BatchWithFlush…
mergify[bot] Oct 25, 2023
b0d383c
changelog for v1 (#848)
tac0turtle Oct 30, 2023
e1fa67e
feat(v1.x.x): async pruning of orphan nodes (#876)
czarcas7ic Feb 15, 2024
7bc76b0
chore: changelog v1 (#886)
tac0turtle Feb 16, 2024
e019f74
feat: decouple cosmos-db (backport #874) (#887)
mergify[bot] Feb 21, 2024
caa11ec
add changelog (#894)
tac0turtle Feb 29, 2024
e691ee9
perf: Remove unneeded GetKey calls to the LRU cache (backport #890) (…
mergify[bot] Mar 5, 2024
e35fdc8
fix: revert the children node key refer (#904)
cool-develope Mar 8, 2024
04a0b44
feat: add the tree Close api (backport #905) (#912)
mergify[bot] Mar 13, 2024
ca1d22d
chore: backport the pruning fix PR to v1.1.x (#910)
cool-develope Mar 14, 2024
b4fcc41
perf(encoding): speed up EncodeVarint with io.ByteWriter+hand rolled …
mergify[bot] Mar 15, 2024
162216b
changelog
tac0turtle Mar 16, 2024
ff86011
chore: cleanup unnecessary `ndb.Commit` calls (backport #902) (#921)
mergify[bot] Mar 25, 2024
0d64869
fix: legacy node key (#928)
cool-develope Apr 8, 2024
370cd83
changelog
tac0turtle Apr 8, 2024
eb53a76
feat: deferred pruning (#925)
cool-develope Apr 9, 2024
86c273d
fix: working hash with initial version (backport #943) (#944)
mergify[bot] May 8, 2024
4ad064e
chore: retract broken versions (backport #947) (#949)
mergify[bot] May 8, 2024
0b05285
create v1.2.x branch
tac0turtle May 13, 2024
a955aea
chore: update changelog in v1.2.x (#951)
cool-develope May 13, 2024
7adc688
refactor: use expected logger interface in iavl 1.2 (#965)
julienrbrt Jul 25, 2024
e69b1cd
fix: close the pruning process properly (backport #970) (#971)
mergify[bot] Jul 26, 2024
8ecbd9f
chore: new `GetLatestVersion` api (backport #961) (#962)
mergify[bot] Jul 26, 2024
984d49b
refactor: remove cosmos-db as a dep (backport #955) (#968)
mergify[bot] Jul 29, 2024
594b181
chore: revert `cosmos-db` updates in release/v1.2.x (#975)
cool-develope Jul 31, 2024
99821d4
fix: Add Extra Check for Reformatted Root Node in GetNode (backport #…
mergify[bot] Nov 26, 2024
d6b098d
changelog entry
tac0turtle Nov 26, 2024
b7bf354
cache first version for legacy versions (backport #1018) (#1019)
mergify[bot] Dec 16, 2024
3b0ad99
fix: Better lock handling on close (backport #1024) (#1025)
mmsqe Dec 18, 2024
72b8a91
perf: remove duplicated rootkey fetch inpruning (9% pruning speedup o…
mergify[bot] Dec 27, 2024
6bb9c64
add changelog entry
tac0turtle Dec 27, 2024
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
19 changes: 19 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Benchmarks

on:
push:
branches:
- master
pull_request:

jobs:
Benchmarks:
runs-on: ubuntu-latest
container: ghcr.io/notional-labs/cosmos
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20' # The Go version to download (if necessary) and use.
- name: run benchmarks
run: make bench
22 changes: 5 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,13 @@ on:
pull_request:

jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"

Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: '1.18' # The Go version to download (if necessary) and use.
go-version: '1.20' # The Go version to download (if necessary) and use.

# Some tests, notably TestRandomOperations, are extremely slow in CI
# with the race detector enabled, so we use -short when -race is
Expand All @@ -33,10 +25,6 @@ jobs:
# integer overflow).
- name: test & coverage report creation
run: |
go test ./... -mod=readonly -timeout 5m -short -race -coverprofile=coverage.txt -covermode=atomic
go test ./... -mod=readonly -timeout 5m
GOARCH=386 go test ./... -mod=readonly -timeout 5m
- uses: codecov/codecov-action@v3.1.0
with:
file: ./coverage.txt
fail_ci_if_error: true
go test ./... -mod=readonly -timeout 10m -short -race -coverprofile=coverage.txt -covermode=atomic
go test ./... -mod=readonly -timeout 15m
GOARCH=386 go test ./... -mod=readonly -timeout 15m
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "15 1 * * 5"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ go ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
22 changes: 22 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
contents: read

jobs:
main:
permissions:
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 6 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,11 @@ jobs:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- name: Check out repository code
uses: actions/checkout@v4
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version: 1.18
- uses: technote-space/get-diff-action@v6.1.0
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
go-version: 1.21
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --out-format=tab
skip-go-installation: true
if: env.GIT_DIFF
run: make lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ cpu*.pdf
mem*.pdf

# IDE files
.idea/*
.idea/*
.vscode/*
2 changes: 2 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
image: ghcr.io/notional-labs/cosmos:latest

32 changes: 12 additions & 20 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
run:
tests: false
tests: true
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
# - errcheck
- errcheck
- exportloopref
- goconst
- gocritic
- gofmt
- goimports
- gofumpt
- gosec
- gosimple
- govet
Expand All @@ -26,13 +23,17 @@ linters:
- prealloc
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
# - wsl

linters-settings:
nolintlint:
allow-leading-space: true
require-explanation: false
require-specific: true

issues:
exclude-rules:
Expand All @@ -45,6 +46,9 @@ issues:
- text: "don't use an underscore in package name"
linters:
- golint
- text: "should be written without leading space as"
linters:
- nolintlint
- text: "ST1003:"
linters:
- stylecheck
Expand All @@ -60,15 +64,3 @@ issues:

max-issues-per-linter: 10000
max-same-issues: 10000

linters-settings:
dogsled:
max-blank-identifiers: 3
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
42 changes: 42 additions & 0 deletions .mergify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
queue_rules:
- name: default
conditions:
- "#approved-reviews-by>1"

pull_request_rules:
- name: automerge to main with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>1"
- base=master
- label=A:automerge
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
- name: backport patches to v0.19.x branch
conditions:
- base=master
- label=backport/v0.19.x
actions:
backport:
branches:
- release/v0.19.x
- name: backport patches to v0.20.x branch
conditions:
- base=master
- label=backport/v0.20.x
actions:
backport:
branches:
- release/v0.20.x
- name: backport patches to v1.x branch
conditions:
- base=master
- label=backport/v1.x
actions:
backport:
branches:
- release/v1.x.x
10 changes: 0 additions & 10 deletions .mergify.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.extensionOutputFolder": "./.vscode"
}
Loading
Loading