From 7ae243352a19872358aa53da9e8861f1905e3c30 Mon Sep 17 00:00:00 2001 From: Neil Twigg Date: Tue, 24 Jan 2023 16:10:13 +0000 Subject: [PATCH 1/2] Lint warnings on `fmt.Print`, `fmt.Printf`, `fmt.Println` --- .golangci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 68d9f6d5..d68bb1bd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,6 +22,7 @@ linters: disable-all: true enable: # - errcheck + - forbidigo - gofmt # - goimports - gosimple @@ -39,6 +40,9 @@ linters-settings: errcheck: check-type-assertions: false check-blank: false + forbidigo: + forbid: + - ^fmt\.Print(f|ln)?$ govet: check-shadowing: false settings: @@ -58,3 +62,14 @@ linters-settings: simple: true range-loops: true for-loops: true + +issues: + exclude-rules: + - path: "main.go" # Excludes main usage + linters: [forbidigo] + - source: "nats-server: v%s" # Excludes PrintServerAndExit + linters: [forbidigo] + - path: "server/opts.go" # Excludes TLS usage options + linters: [forbidigo] + - path: "_test.go" # Excludes unit tests + linters: [forbidigo] From 8a40326a70090eeba6d5ee5c9bc8f5c00c7583b1 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Thu, 26 Jan 2023 10:07:30 -0800 Subject: [PATCH 2/2] Bump to 2.9.12-RC.1 Signed-off-by: Derek Collison --- server/const.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/const.go b/server/const.go index 5e6c7370..7a6d85cd 100644 --- a/server/const.go +++ b/server/const.go @@ -41,7 +41,7 @@ var ( const ( // VERSION is the current version for the server. - VERSION = "2.9.12-beta" + VERSION = "2.9.12-RC.1" // PROTO is the currently supported protocol. // 0 was the original