-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into work-with-older-versions
- Loading branch information
Showing
11 changed files
with
202 additions
and
134 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,53 @@ | ||
output: | ||
# Make output more digestible with quickfix in vim/emacs/etc. | ||
sort-results: true | ||
print-issued-lines: false | ||
|
||
linters: | ||
# We'll track the golangci-lint default linters manually | ||
# instead of letting them change without our control. | ||
disable-all: true | ||
enable: | ||
# golangci-lint defaults: | ||
# - errcheck TODO: enable errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- unused | ||
|
||
# Our own extras: | ||
- gofmt | ||
- nolintlint # lints nolint directives | ||
- revive | ||
|
||
linter-settings: | ||
govet: | ||
# These govet checks are disabled by default, but they're useful. | ||
enable: | ||
- niliness | ||
- reflectvaluecompare | ||
- sortslice | ||
- unusedwrite | ||
|
||
issues: | ||
# Print all issues reported by all linters. | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
# Don't ignore some of the issues that golangci-lint considers okay. | ||
# This includes documenting all exported entities. | ||
exclude-use-default: false | ||
|
||
exclude-rules: | ||
# Don't warn on unused parameters. | ||
# Parameter names are useful; replacing them with '_' is undesirable. | ||
- linters: [revive] | ||
text: 'unused-parameter: parameter \S+ seems to be unused, consider removing or renaming it as _' | ||
|
||
# staticcheck already has smarter checks for empty blocks. | ||
# revive's empty-block linter has false positives. | ||
# For example, as of writing this, the following is not allowed. | ||
# for foo() { } | ||
- linters: [revive] | ||
text: 'empty-block: this block is empty, you can remove it' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,12 @@ | ||
module go.uber.org/zap/tools | ||
|
||
require ( | ||
github.com/mgechev/revive v1.2.5 | ||
golang.org/x/vuln v1.0.0 | ||
honnef.co/go/tools v0.4.4 | ||
) | ||
require golang.org/x/vuln v1.0.0 | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.2.1 // indirect | ||
github.com/chavacava/garif v0.0.0-20221024190013-b3ef35877348 // indirect | ||
github.com/fatih/color v1.14.1 // indirect | ||
github.com/fatih/structtag v1.2.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.17 // indirect | ||
github.com/mattn/go-runewidth v0.0.9 // indirect | ||
github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 // indirect | ||
github.com/olekukonko/tablewriter v0.0.5 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect | ||
golang.org/x/mod v0.10.0 // indirect | ||
golang.org/x/sync v0.2.0 // indirect | ||
golang.org/x/sys v0.8.0 // indirect | ||
golang.org/x/tools v0.9.4-0.20230601214343-86c93e8732cc // indirect | ||
golang.org/x/sync v0.1.0 // indirect | ||
golang.org/x/sys v0.7.0 // indirect | ||
golang.org/x/tools v0.8.1-0.20230421161920-b9619ee54b47 // indirect | ||
) | ||
|
||
go 1.20 |
Oops, something went wrong.