From a7c31ff7ed0990545ed4cc62690fc53563ee8860 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Thu, 27 Feb 2020 11:59:02 +0100 Subject: Enable golint (#1623) * Enable golint in golangci-lint tests. * Fix up minor linting issues. Signed-off-by: Ben Kochie --- .golangci.yml | 4 ++++ https/tls_config_test.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b421c1f..c53f64c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,10 @@ run: modules-download-mode: vendor +linters: + enable: + - golint + issues: exclude-rules: - path: _test.go diff --git a/https/tls_config_test.go b/https/tls_config_test.go index 717f201..4b1b4e0 100644 --- a/https/tls_config_test.go +++ b/https/tls_config_test.go @@ -213,13 +213,13 @@ func TestConfigReloading(t *testing.T) { err := TestClientConnection() if err == nil { - recordConnectionError(errors.New("Connection accepted but should have failed.")) + recordConnectionError(errors.New("connection accepted but should have failed")) } else { swapFileContents(goodYAMLPath, badYAMLPath) defer swapFileContents(goodYAMLPath, badYAMLPath) err = TestClientConnection() if err != nil { - recordConnectionError(errors.New("Connection failed but should have been accepted.")) + recordConnectionError(errors.New("connection failed but should have been accepted")) } else { recordConnectionError(nil) -- cgit v1.2.3