chore: Enable G106, G108, G109, G111, G201, G203 rules for gosec (#12956)

Co-authored-by: Pawel Zak <Pawel Zak>
This commit is contained in:
Paweł Żak 2023-03-28 11:44:03 +02:00 committed by GitHub
parent 3415cc8c80
commit d14ea26100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -14,6 +14,7 @@ linters:
- exportloopref
- gocheckcompilerdirectives
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
@ -75,6 +76,17 @@ linters-settings:
- "**/testutil/**"
- "**/tools/**"
- "**/*_test.go"
gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
# Default: [] - means include all rules
includes:
- G106
- G108
- G109
- G111
- G201
- G203
lll:
# Max line length, lines longer will be reported.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option.