-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Weifeng Wang <[email protected]>
- Loading branch information
Showing
9 changed files
with
984 additions
and
110 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT | ||
|
||
go 1.23.0 | ||
|
||
require github.com/golangci/golangci-lint v1.60.2 // cmd/golangci-lint |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
run: | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
timeout: 10m | ||
|
||
linters: | ||
enable: | ||
- errorlint | ||
- goconst | ||
- gofmt | ||
- goimports | ||
- revive | ||
- ineffassign | ||
- staticcheck | ||
- misspell | ||
- unconvert | ||
- unparam | ||
- govet | ||
- typecheck | ||
- copyloopvar | ||
|
||
linters-settings: | ||
errcheck: | ||
# List of functions to exclude from checking, where each entry is a single function to exclude. | ||
# See https://github.com/kisielk/errcheck#excluding-functions for details. | ||
exclude-functions: | ||
- io/ioutil.ReadFile | ||
- io.Copy(*bytes.Buffer) | ||
- io.Copy(os.Stdout) | ||
- (github.com/go-kit/log.Logger).Log | ||
|
||
errorlint: | ||
# Do not check for plain type assertions and type switches. | ||
asserts: false | ||
# Check whether fmt.Errorf uses the %w verb for formatting errors. | ||
# See the https://github.com/polyfloyd/go-errorlint for caveats. | ||
# Default: true | ||
errorf: false | ||
|
||
goconst: | ||
min-len: 5 | ||
min-occurrences: 5 | ||
ignore-tests: true | ||
|
||
issues: | ||
exclude-files: | ||
- .*.pb.go | ||
exclude-rules: | ||
- linters: [revive] | ||
text: "if-return" |
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.