-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add pebbledb * use latest pebble * added a ton of test rigor and fixed linting * if always false we don't need the param * really we don't need that * Update pebble.go Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * Update pebble.go Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * Update pebble.go Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * Update pebble.go Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * Update pebble.go Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * Update pebble.go Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * clean up * change default ForceSync=1 * pebble * Update db.go Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com> * resolve conflicts * update CHANGELOG.md: Added support for pebbledb v1.0.0 * add unclog entry * add changelog * correct a readme file issue * correct changelog and reove 112's unclog * update .golangci.yml * add pebble to the ci test runs * fix the callt o registerDBCreator * remove manual edits to changelog so unclog can do its thing --------- Co-authored-by: Tuan Pham Anh <baabeetaa@gmail.com> Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
- Loading branch information
1 parent
649c0ef
commit 5e2bd08
Showing
20 changed files
with
188 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
chore: lint code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,115 @@ | ||
linters: | ||
run: | ||
tests: true | ||
timeout: 10m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- depguard | ||
- dogsled | ||
- dupl | ||
- exportloopref | ||
- errcheck | ||
- gci | ||
- goconst | ||
- gocritic | ||
- gofumpt | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- lll | ||
- misspell | ||
- nakedret | ||
- prealloc | ||
- staticcheck | ||
- thelper | ||
- typecheck | ||
- stylecheck | ||
- revive | ||
- typecheck | ||
- tenv | ||
- unconvert | ||
# Prefer unparam over revive's unused param. It is more thorough in its checking. | ||
- unparam | ||
- unused | ||
- nolintlint | ||
- misspell | ||
|
||
issues: | ||
exclude-rules: | ||
- text: 'differs only by capitalization to method' | ||
linters: | ||
- revive | ||
- text: 'Use of weak random number generator' | ||
linters: | ||
- gosec | ||
- linters: | ||
- staticcheck | ||
text: "SA1019:" # silence errors on usage of deprecated funcs | ||
|
||
max-issues-per-linter: 10000 | ||
max-same-issues: 10000 | ||
|
||
linters-settings: | ||
errcheck: | ||
check-blank: true | ||
depguard: | ||
gci: | ||
sections: | ||
- standard # Standard section: captures all standard packages. | ||
- default # Default section: contains all imports that could not be matched to another section type. | ||
- blank # blank imports | ||
- dot # dot imports | ||
- prefix(github.com/cometbft/cometbft-db) | ||
custom-order: true | ||
revive: | ||
enable-all-rules: true | ||
# Do NOT whine about the following, full explanation found in: | ||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#description-of-available-rules | ||
rules: | ||
main: | ||
files: | ||
- $all | ||
- "!$test" | ||
allow: | ||
- $gostd | ||
- github.com/cometbft | ||
- github.com/syndtr/goleveldb/leveldb | ||
- github.com/google/btree | ||
test: | ||
files: | ||
- $test | ||
allow: | ||
- $gostd | ||
- github.com/cometbft | ||
- github.com/syndtr/goleveldb/leveldb | ||
- github.com/stretchr/testify | ||
- name: use-any | ||
disabled: true | ||
- name: if-return | ||
disabled: true | ||
- name: max-public-structs | ||
disabled: true | ||
- name: cognitive-complexity | ||
disabled: true | ||
- name: argument-limit | ||
disabled: true | ||
- name: cyclomatic | ||
disabled: true | ||
- name: file-header | ||
disabled: true | ||
- name: function-length | ||
disabled: true | ||
- name: function-result-limit | ||
disabled: true | ||
- name: line-length-limit | ||
disabled: true | ||
- name: flag-parameter | ||
disabled: true | ||
- name: add-constant | ||
disabled: true | ||
- name: empty-lines | ||
disabled: true | ||
- name: banned-characters | ||
disabled: true | ||
- name: deep-exit | ||
disabled: true | ||
- name: confusing-results | ||
disabled: true | ||
- name: unused-parameter | ||
disabled: true | ||
- name: modifies-value-receiver | ||
disabled: true | ||
- name: early-return | ||
disabled: true | ||
- name: confusing-naming | ||
disabled: true | ||
- name: defer | ||
disabled: true | ||
# Disabled in favour of unparam. | ||
- name: unused-parameter | ||
disabled: true | ||
- name: unhandled-error | ||
disabled: false | ||
arguments: | ||
- 'fmt.Printf' | ||
- 'fmt.Print' | ||
- 'fmt.Println' | ||
- 'myFunction' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.