From 11a0e1dfa4a781bdcbbe1dd33cd612e49cc69d23 Mon Sep 17 00:00:00 2001 From: Vladislav Byrgazov Date: Wed, 13 Nov 2024 16:10:16 +0500 Subject: [PATCH 1/2] Update go to 1.23 Signed-off-by: Vladislav Byrgazov --- .golangci.yml | 21 +++++++++------------ cmd-dashboard-backend | Bin 0 -> 23657040 bytes go.mod | 2 +- go.sum | 15 +++++++++++++++ 4 files changed, 25 insertions(+), 13 deletions(-) create mode 100755 cmd-dashboard-backend diff --git a/.golangci.yml b/.golangci.yml index e7f104e..ad75453 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ --- run: - go: "1.20" + go: "1.23" timeout: 2m issues-exit-code: 1 tests: true @@ -10,13 +10,14 @@ 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: @@ -25,18 +26,16 @@ linters-settings: - (github.com/sirupsen/logrus.FieldLogger).Errorf - (github.com/sirupsen/logrus.FieldLogger).Fatalf revive: - min-confidence: 0.8 + confidence: 0.8 goimports: local-prefixes: github.com/networkservicemesh gocyclo: min-complexity: 20 - maligned: - suggest-new: true dupl: threshold: 150 funlen: - Lines: 120 - Statements: 50 + lines: 120 + statements: 50 goconst: min-len: 2 min-occurrences: 2 @@ -127,7 +126,6 @@ linters: enable: - goheader - bodyclose - - deadcode - depguard - dogsled - dupl @@ -146,15 +144,14 @@ linters: - ineffassign - misspell - nakedret - - exportloopref - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - - varcheck - whitespace + - unused + - copyloopvar issues: exclude-use-default: false max-issues-per-linter: 0 diff --git a/cmd-dashboard-backend b/cmd-dashboard-backend new file mode 100755 index 0000000000000000000000000000000000000000..8c10c702126553b8659c5fd458db401191c5a96b GIT binary patch literal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