-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Overview Unify formatting with `celestia-node` and other Celestia projects in the future.
- Loading branch information
1 parent
72d6506
commit b81f0d7
Showing
7 changed files
with
93 additions
and
15 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,84 @@ | ||
run: | ||
timeout: 5m | ||
|
||
linters: | ||
enable: | ||
- bidichk | ||
- bodyclose | ||
# - depguard as of v1.54.2, the default config throws errors on our repo | ||
- dogsled | ||
- dupl | ||
- errcheck | ||
- errorlint | ||
# - funlen | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
- exportloopref | ||
- gocheckcompilerdirectives | ||
- goconst | ||
- gocritic | ||
# - gocyclo | ||
# - godox | ||
- gofmt | ||
- gofumpt | ||
- goimports | ||
# - golint - deprecated since v1.41. revive will be used instead | ||
- revive | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
# - interfacer | ||
- lll | ||
- loggercheck | ||
- misspell | ||
# - maligned | ||
- nakedret | ||
- nilerr | ||
- nilnil | ||
- nolintlint | ||
- prealloc | ||
- protogetter | ||
# - scopelint - deprecated since v1.39. exportloopref will be used instead | ||
- exportloopref | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
# - unparam | ||
- unused | ||
# - whitespace | ||
# - wsl | ||
# - gocognit | ||
- wastedassign | ||
- whitespace | ||
- nolintlint | ||
- asciicheck | ||
- dupword | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gosec | ||
- revive | ||
- linters: | ||
- lll | ||
source: "https://" | ||
max-same-issues: 50 | ||
|
||
linters-settings: | ||
dogsled: | ||
max-blank-identifiers: 3 | ||
golint: | ||
min-confidence: 0 | ||
maligned: | ||
suggest-new: true | ||
misspell: | ||
locale: US | ||
goimports: | ||
local-prefixes: github.com/celestiaorg | ||
dupl: | ||
threshold: 200 | ||
gofumpt: | ||
extra-rules: true |
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