Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v9
test:
runs-on: ubuntu-latest
steps:
Expand Down
67 changes: 13 additions & 54 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,17 @@
version: "2"

run:
timeout: 5m
modules-download-mode: readonly

linters:
enable:
- bodyclose
- contextcheck
- copyloopvar
- decorder
- dogsled
- errcheck
- errorlint
- gochecknoinits
- goconst
- gocritic
- godox
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- commentFormatting
- exitAfterDefer
- hugeParam
- ifElseChain
- rangeValCopy
- unnecessaryBlock
gofmt:
simplify: true
misspell:
locale: US
ignore-words:
- clas
godox:
keywords:
- HACK
- XXX
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling

formatters:
exclusions:
generated: lax
2 changes: 1 addition & 1 deletion internal/node/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func Test_Reconcile(t *testing.T) {
}
mock.AssertExpectationsForObjects(t, ac)
actual := &corev1.Node{}
assert.NilError(t, c.Get(context.TODO(), types.NamespacedName{Name: tt.expected.ObjectMeta.Name}, actual))
assert.NilError(t, c.Get(context.TODO(), types.NamespacedName{Name: tt.expected.Name}, actual))
assert.DeepEqual(t, tt.expected, actual,
cmpopts.IgnoreFields(v1.ObjectMeta{}, "ResourceVersion"),
cmpopts.IgnoreTypes(v1.TypeMeta{}))
Expand Down
Loading