Skip to content

Commit

Permalink
chore: update golangci 36 (#6936)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo authored Sep 5, 2024
1 parent 454ff97 commit 72125d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
17 changes: 8 additions & 9 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@ run:

timeout: 5m

skip-dirs:
- tools
- website
- hack
- charts
- designs

linters:
enable:
- asciicheck
- bidichk
- errorlint
- exportloopref
- copyloopvar
- gosec
- revive
- stylecheck
Expand All @@ -36,7 +29,7 @@ linters-settings:
gocyclo:
min-complexity: 11
govet:
check-shadowing: true
shadow: true
revive:
rules:
- name: dot-imports
Expand Down Expand Up @@ -66,6 +59,12 @@ linters-settings:
issues:
fix: true
exclude: ['declaration of "(err|ctx)" shadows declaration at']
exclude-dirs:
- tools
- website
- hack
- charts
- designs
exclude-rules:
- linters:
- goheader
Expand Down
1 change: 0 additions & 1 deletion pkg/providers/instancetype/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,6 @@ func generateSpot#(cp *cloudprovider.CloudProvider, nodePool *corev1beta1.
}
}
for _, o := range instanceType.Offerings {
o := o
if o.CapacityType != corev1beta1.CapacityTypeSpot {
continue
}
Expand Down
2 changes: 0 additions & 2 deletions test/pkg/environment/common/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func (m *Monitor) DeletedNodes() []*v1.Node {
func (m *Monitor) PendingPods(selector labels.Selector) []*v1.Pod {
var pods []*v1.Pod
for _, pod := range m.poll().pods.Items {
pod := pod
if pod.Status.Phase != v1.PodPending {
continue
}
Expand All @@ -152,7 +151,6 @@ func (m *Monitor) PendingPodsCount(selector labels.Selector) int {
func (m *Monitor) RunningPods(selector labels.Selector) []*v1.Pod {
var pods []*v1.Pod
for _, pod := range m.poll().pods.Items {
pod := pod
if pod.Status.Phase != v1.PodRunning {
continue
}
Expand Down

0 comments on commit 72125d1

Please # to comment.