Skip to content

Commit

Permalink
chore(linter): enable all go-vet rules (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 authored Nov 18, 2024
1 parent 3de5b0a commit 5929ab4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ linters-settings:
- default
- prefix(github.com/kong/kubernetes-configuration)
- prefix(github.com/kong/gateway-operator)
govet:
enable-all: true # To have checks like e.g. unusedwrite.
disable:
- fieldalignment
- shadow
importas:
no-unaliased: true
alias:
Expand Down
2 changes: 1 addition & 1 deletion controller/dataplane/owned_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func reconcileDataPlaneDeployment(
// the replicas to the minReplicas if the existing Deployment replicas
// are less than the minReplicas to enforce faster scaling before HPA
// kicks in.
(scaling != nil && scaling.HorizontalScaling != nil &&
(scaling.HorizontalScaling != nil &&
scaling.HorizontalScaling.MinReplicas != nil &&
existing.Spec.Replicas != nil &&
*existing.Spec.Replicas < *scaling.HorizontalScaling.MinReplicas) {
Expand Down

0 comments on commit 5929ab4

Please sign in to comment.