-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use go 1.19 * fix nix-shell * update golint config from cosmos-sdk * upgrade golint action * fix lint Co-authored-by: HuangYi <[email protected]>
- Loading branch information
Showing
14 changed files
with
99 additions
and
109 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
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,83 +1,66 @@ | ||
run: | ||
tests: false | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
# timeout: 5m | ||
tests: true | ||
timeout: 10m | ||
sort-results: true | ||
allow-parallel-runners: true | ||
exclude-dir: testutil/testdata_pulsar | ||
concurrency: 4 | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
# - bodyclose | ||
- deadcode | ||
- depguard | ||
- dogsled | ||
- dupl | ||
- errcheck | ||
- exportloopref | ||
- goconst | ||
- gocritic | ||
- gofmt | ||
- goimports | ||
- revive | ||
- gofumpt | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
# - lll TODO: enable | ||
- misspell | ||
- nakedret | ||
- prealloc | ||
- exportloopref | ||
- nolintlint | ||
- staticcheck | ||
# - structcheck | ||
- revive | ||
- stylecheck | ||
# - typecheck #TODO: enable | ||
- typecheck | ||
- unconvert | ||
# - unparam | ||
- unused | ||
- varcheck | ||
- nolintlint | ||
- asciicheck | ||
# - exhaustive | ||
- exportloopref | ||
- gofumpt | ||
- gomodguard | ||
# - nestif | ||
# - nlreturn | ||
# - noctx | ||
# - rowserrcheck | ||
# - whitespace | ||
# - wsl | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
- text: "Use of weak random number generator" | ||
linters: | ||
- gosec | ||
- linters: | ||
- lll | ||
source: "https://" | ||
max-same-issues: 50 | ||
- text: "ST1003:" | ||
linters: | ||
- stylecheck | ||
# FIXME: Disabled until golangci-lint updates stylecheck with this fix: | ||
# https://github.com/dominikh/go-tools/issues/389 | ||
- text: "ST1016:" | ||
linters: | ||
- stylecheck | ||
- path: "migrations" | ||
text: "SA1019:" | ||
linters: | ||
- staticcheck | ||
- text: "leading space" | ||
linters: | ||
- nolintlint | ||
|
||
max-issues-per-linter: 10000 | ||
max-same-issues: 10000 | ||
|
||
linters-settings: | ||
dogsled: | ||
max-blank-identifiers: 3 | ||
golint: | ||
min-confidence: 0 | ||
maligned: | ||
# print struct with more effective memory layout or not, false by default | ||
suggest-new: true | ||
misspell: | ||
locale: US | ||
nolintlint: | ||
allow-unused: false | ||
allow-leading-space: true | ||
require-explanation: false | ||
require-specific: false | ||
gofumpt: | ||
lang-version: "1.18" | ||
gomodguard: | ||
blocked: | ||
versions: # List of blocked module version constraints | ||
- https://github.com/etcd-io/etcd: # Blocked module with version constraint | ||
version: ">= 3.4.10 || ~3.3.23" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons | ||
reason: "CVE-2020-15114; CVE-2020-15136; CVE-2020-15115" # Reason why the version constraint exists. (Optional) | ||
- https://github.com/dgrijalva/jwt-go: # Blocked module with version constraint | ||
version: ">= 4.0.0-preview1" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons | ||
reason: "CVE-2020-26160" # Reason why the version constraint exists. (Optional) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.