Skip to content

Commit c958293

Browse files
authored
Fix warning of deprecated setting in golangci-lint (#2010)
1 parent 11e75fe commit c958293

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.golangci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ linters:
6868

6969
linters-settings:
7070
errcheck:
71-
# path to a file containing a list of functions to exclude from checking
72-
# see https://github.com/kisielk/errcheck#excluding-functions for details
73-
exclude: errcheck_excludes.txt
71+
exclude-functions:
72+
- (io.Closer).Close
73+
- (*os.File).Close
74+
- (github.com/FoundationDB/fdb-kubernetes-operator/pkg/fdbadminclient.AdminClient).Close
7475
govet:
7576
enable:
7677
- shadow

errcheck_excludes.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)