Skip to content

Commit a21113d

Browse files
committed
Enable gofumpt and gosec
Signed-off-by: Thomas Stromberg <[email protected]>
1 parent 43bd10d commit a21113d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.golangci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ linters-settings:
1818
min-occurrences: 5
1919
ignore-tests: true
2020

21+
gosec:
22+
excludes:
23+
- G107 # Potential HTTP request made with variable url
24+
- G204 # Subprocess launched with function call as argument or cmd arguments
25+
- G404 # Use of weak random number generator (math/rand instead of crypto/rand
26+
2127
errorlint:
2228
# these are still common in Go: for instance, exit errors.
2329
asserts: false
@@ -108,6 +114,8 @@ linters:
108114
- gocritic
109115
- godot
110116
- gofmt
117+
- gofumpt
118+
- gosec
111119
- goheader
112120
- goimports
113121
- goprintffuncname
@@ -158,8 +166,6 @@ linters:
158166
# - maligned
159167
# - prealloc "For most programs usage of prealloc will be a premature optimization."
160168
# Disabled linters due to bad error messages or bugs
161-
# - gofumpt
162-
# - gosec
163169
# - tagliatelle
164170

165171
issues:

0 commit comments

Comments
 (0)