Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golangci: update configuration from org-wide linter #1013

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
golangci: update configuration from org-wide linter
We can't reuse the job at the moment because of the tree service code (#1007),
but let's at least grab the best settings we can have now (they don't change
often anyway).

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Oct 1, 2024
commit e99508398f4632e36ccbc483f2113bde929dfedd
33 changes: 31 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -22,6 +22,18 @@ linters-settings:
# 'default' case is present, even if all enum members aren't listed in the
# switch
default-signifies-exhaustive: true
gofmt:
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
gomodguard:
blocked:
modules:
- github.com/pkg/errors:
reason: "Obsolete after the 1.13 release; use the standard `errors` package"
revive:
rules:
- name: duplicated-imports

linters:
enable:
@@ -32,17 +44,34 @@ linters:
# some default golangci-lint linters
- errcheck
- gosimple
- godot
- ineffassign
- staticcheck
- typecheck
- unused

# extra linters
# - goconst
# - goerr113
# - gomnd
# - nonamedreturns
# - unparam
- bidichk
- bodyclose
- contextcheck
- copyloopvar
- decorder
- durationcheck
- errorlint
- exhaustive
- godot
- gofmt
- whitespace
- goimports
- gomodguard
- intrange
- misspell
- predeclared
- reassign
- whitespace
disable-all: true
fast: false

Loading