From d14ea26100e4209d47b49028b9bd07077497b363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=C5=BBak?= Date: Tue, 28 Mar 2023 11:44:03 +0200 Subject: [PATCH] chore: Enable G106, G108, G109, G111, G201, G203 rules for gosec (#12956) Co-authored-by: Pawel Zak --- .golangci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 909e99374..fc9dd3ca9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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.