Skip to content

Commit 3676f99

Browse files
Update dependency golangci/golangci-lint to v2.7.2 (#4395)
* Update dependency golangci/golangci-lint to v2.7.2 | datasource | package | from | to | | ----------- | ---------------------- | ------ | ------ | | github-tags | golangci/golangci-lint | v2.6.2 | v2.7.2 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Linting fixes --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Saylor Berman <s.berman@f5.com>
1 parent d9476ca commit 3676f99

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
5151
with:
5252
working-directory: ${{ matrix.directory }}
53-
version: v2.6.2 # renovate: datasource=github-tags depName=golangci/golangci-lint
53+
version: v2.7.2 # renovate: datasource=github-tags depName=golangci/golangci-lint
5454

5555
njs-lint:
5656
name: NJS Lint

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repos:
3838
- javascript
3939

4040
- repo: https://github.com/golangci/golangci-lint
41-
rev: v2.6.2
41+
rev: v2.7.2
4242
hooks:
4343
- id: golangci-lint-full
4444
name: golangci-lint-root

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GO_LINKER_FLAGS = $(GO_LINKER_FLAGS_OPTIMIZATIONS) $(GO_LINKER_FlAGS_VARS)
2424

2525
# tools versions
2626
# renovate: datasource=github-tags depName=golangci/golangci-lint
27-
GOLANGCI_LINT_VERSION = v2.6.2
27+
GOLANGCI_LINT_VERSION = v2.7.2
2828
# renovate: datasource=docker depName=kindest/node
2929
KIND_K8S_VERSION = v1.34.0
3030
# renovate: datasource=github-tags depName=norwoodj/helm-docs

internal/controller/ngfsort/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package ngfsort provides utilities for sorting Kubernetes resources.
2+
package ngfsort
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package sort
1+
package ngfsort
22

33
import (
44
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package sort
1+
package ngfsort
22

33
import (
44
"testing"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
22
Package context contains the functions for storing extra information in the gRPC context.
33
*/
4-
package context
4+
package context //nolint:revive // ignoring conflicting package name

internal/controller/nginx/config/http/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package http
1+
package http //nolint:revive // ignoring conflicting package name
22

33
import (
44
"github.com/nginx/nginx-gateway-fabric/v2/internal/controller/nginx/config/shared"

internal/controller/nginx/config/shared/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package shared
1+
package shared //nolint:revive // ignoring meaningless package name
22

33
// Map defines an NGINX map.
44
type Map struct {

internal/controller/sort/doc.go

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)