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 Nov 13, 2024
1 parent f8aedc3 commit 669983a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 14 deletions.
23 changes: 10 additions & 13 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 @@ -11,33 +11,30 @@ linters-settings:
values:
regexp:
company: .*
copyright-holder: Copyright \(c\) ({{year-range}}) {{company}}\n\n
copyright-holder: Copyright \(c\) ({{mod-year-range}}) {{company}}\n\n
copyright-holders: ({{copyright-holder}})+
errcheck:
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: 25
maligned:
suggest-new: true
dupl:
threshold: 150
funlen:
Lines: 300
Statements: 120
lines: 300
statements: 120
goconst:
min-len: 2
min-occurrences: 2
Expand All @@ -57,6 +54,9 @@ linters-settings:
simple: true
range-loops: true
for-loops: false
gosec:
excludes:
- G115
gocritic:
enabled-checks:
- appendAssign
Expand Down Expand Up @@ -128,7 +128,6 @@ linters:
enable:
- goheader
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -147,15 +146,13 @@ linters:
- ineffassign
- misspell
- nakedret
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- varcheck
- whitespace
- copyloopvar
issues:
exclude-use-default: false
max-issues-per-linter: 0
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-nsc-simple-docker

go 1.20
go 1.23

require (
github.com/antonfisher/nested-logrus-formatter v1.3.1
Expand Down
Loading

0 comments on commit 669983a

Please sign in to comment.