refactor: pass golang-ci lint check

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-08-14 21:22:34 +08:00
parent 147d57e8f4
commit 63fc3a656a
22 changed files with 112 additions and 99 deletions
+4 -2
View File
@@ -11,7 +11,6 @@ linters:
- 'deadcode'
- 'depguard'
- 'dogsled'
- 'errcheck'
- 'errorlint'
- 'exportloopref'
- 'gofmt'
@@ -42,6 +41,7 @@ linters:
- 'structcheck'
- 'stylecheck'
- 'unused'
- 'errcheck'
issues:
exclude-use-default: false
@@ -52,7 +52,9 @@ issues:
- G101
# G103: Use of unsafe calls should be audited
- G103
# G404, G401, G502, G505 weak cryptographic list
# G304: Potential file inclusion via variable
- G304
# G404, G401, G502, G505: weak cryptographic list
- G401
- G404
- G502