Skip to content

Commit 103dc21

Browse files
chore: Exclude G115 from gosec linter
Exclude G115 from the gosec linter to address the issue with securego/gosec#1212.
1 parent b34072b commit 103dc21

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.golangci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ linters-settings:
6767
exhaustruct:
6868
include: []
6969

70+
gosec:
71+
excludes:
72+
- G115 #TODO: remove after fixing https://github.com/securego/gosec/issues/1212
73+
7074
linters:
7175
disable-all: true
7276
enable:
@@ -75,7 +79,7 @@ linters:
7579
- dogsled
7680
- dupl
7781
- errcheck
78-
- exportloopref
82+
- copyloopvar
7983
- funlen
8084
- gochecknoinits
8185
- goconst
@@ -108,14 +112,12 @@ linters:
108112

109113
# don't enable:
110114
# - asciicheck
111-
# - scopelint
112115
# - gochecknoglobals
113116
# - gocognit
114117
# - godot
115118
# - godox
116-
# - goerr113
119+
# - err113
117120
# - interfacer
118-
# - maligned
119121
# - nestif
120122
# - prealloc
121123
# - testpackage

0 commit comments

Comments
 (0)