-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually use golangci-lint config. (#1106)
* Actually use golangci-lint config. golangci-config uses `.golangci.yaml` as the default config path. Previously we were using `.golang-ci.yaml` so changes weren't taking affect. * Update lint.yaml
- Loading branch information
Showing
3 changed files
with
69 additions
and
88 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Documentation: https://golangci-lint.run/usage/configuration/ | ||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- containedctx | ||
- decorder | ||
- depguard | ||
- dogsled | ||
- dupl | ||
- dupword | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- exhaustive | ||
- goconst | ||
- gocritic | ||
- gofmt | ||
- goimports | ||
- gomodguard | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ireturn | ||
- maintidx | ||
- makezero | ||
- misspell | ||
- musttag | ||
- nakedret | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- nosprintfhostport | ||
- revive | ||
- staticcheck | ||
- thelper | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- whitespace | ||
output: | ||
uniq-by-line: false | ||
issues: | ||
# Only flag new issues | ||
new: true | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- errcheck | ||
- gosec | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
include: | ||
# Enable off-by-default rules for revive requiring that all exported elements have a properly formatted comment. | ||
- EXC0012 # https://golangci-lint.run/usage/false-positives/#exc0012 | ||
- EXC0014 # https://golangci-lint.run/usage/false-positives/#exc0014 | ||
run: | ||
issues-exit-code: 1 | ||
build-tags: | ||
- e2e | ||
# skip-dirs: | ||
# - vendor | ||
timeout: 20m | ||
modules-download-mode: vendor |