Skip to content

Commit a7c31ff

Browse files
authored
Enable golint (prometheus#1623)
* Enable golint in golangci-lint tests. * Fix up minor linting issues. Signed-off-by: Ben Kochie <[email protected]>
1 parent ef7c058 commit a7c31ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
run:
22
modules-download-mode: vendor
33

4+
linters:
5+
enable:
6+
- golint
7+
48
issues:
59
exclude-rules:
610
- path: _test.go

https/tls_config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ func TestConfigReloading(t *testing.T) {
213213

214214
err := TestClientConnection()
215215
if err == nil {
216-
recordConnectionError(errors.New("Connection accepted but should have failed."))
216+
recordConnectionError(errors.New("connection accepted but should have failed"))
217217
} else {
218218
swapFileContents(goodYAMLPath, badYAMLPath)
219219
defer swapFileContents(goodYAMLPath, badYAMLPath)
220220
err = TestClientConnection()
221221
if err != nil {
222-
recordConnectionError(errors.New("Connection failed but should have been accepted."))
222+
recordConnectionError(errors.New("connection failed but should have been accepted"))
223223
} else {
224224

225225
recordConnectionError(nil)

0 commit comments

Comments
 (0)