Skip to content

Commit

Permalink
Update go to 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Byrgazov <[email protected]>
  • Loading branch information
Vladislav Byrgazov committed Oct 21, 2024
1 parent 3ad4703 commit c72977f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 17 deletions.
22 changes: 7 additions & 15 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
run:
# concurrency: 6
go: "1.20"
go: "1.23"
timeout: 2m
issues-exit-code: 1
tests: true
Expand All @@ -17,27 +17,24 @@ linters-settings:
check-type-assertions: false
check-blank: false
govet:
check-shadowing: true
enable:
- shadow
settings:
printf:
funcs:
- (github.com/sirupsen/logrus.FieldLogger).Infof
- (github.com/sirupsen/logrus.FieldLogger).Warnf
- (github.com/sirupsen/logrus.FieldLogger).Errorf
- (github.com/sirupsen/logrus.FieldLogger).Fatalf
revive:
min-confidence: 0.8
goimports:
local-prefixes: github.com/networkservicemesh
gocyclo:
min-complexity: 20
maligned:
suggest-new: true
dupl:
threshold: 150
funlen:
Lines: 175
Statements: 100
lines: 175
statements: 100
goconst:
min-len: 2
min-occurrences: 2
Expand Down Expand Up @@ -127,10 +124,8 @@ linters-settings:
linters:
disable-all: true
enable:
# - rowserrcheck
- goheader
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -147,19 +142,16 @@ linters:
- gosimple
- govet
- ineffassign
# - lll
- misspell
- nakedret
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
# - unused
- varcheck
- whitespace
- unused
- copyloopvar
issues:
exclude-use-default: false
max-issues-per-linter: 0
Expand Down
3 changes: 3 additions & 0 deletions auto_shutdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build linux
// +build linux

package main_test

import (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/networkservicemesh/cmd-nse-icmp-responder

go 1.20
go 1.23

require (
github.com/antonfisher/nested-logrus-formatter v1.3.1
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/imports/gen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2022 Cisco and/or its affiliates.
// Copyright (c) 2020-2024 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down
3 changes: 3 additions & 0 deletions suite_healthcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build linux
// +build linux

package main_test

import (
Expand Down
3 changes: 3 additions & 0 deletions suite_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build linux
// +build linux

package main_test

import (
Expand Down
3 changes: 3 additions & 0 deletions suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build linux
// +build linux

package main_test

import (
Expand Down
3 changes: 3 additions & 0 deletions suite_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build linux
// +build linux

package main_test

import (
Expand Down

0 comments on commit c72977f

Please sign in to comment.