From a622b3cd5dffe762168a441866a2ef0e007f9b60 Mon Sep 17 00:00:00 2001 From: Harish Marri Date: Sun, 24 Sep 2023 00:55:54 +0530 Subject: [PATCH] update go lint config --- .golangci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 43f066dc..4d6f0cf2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,6 +12,7 @@ linters: - goconst - gocritic - gofumpt + - gosec - gosimple - govet - ineffassign @@ -27,13 +28,6 @@ linters: - unused issues: - gofumpt: - # Module path which contains the source code being formatted. - # Default: "" - module-path: github.com/cosmos/interchain-security - # Choose whether to use the extra rules. - # Default: false - extra-rules: true exclude-rules: - text: "Use of weak random number generator" linters: @@ -53,11 +47,18 @@ issues: - text: "leading space" linters: - nolintlint + - path: "legacy" + text: "SA1019:" + linters: + - staticcheck max-issues-per-linter: 10000 max-same-issues: 10000 linters-settings: + gosec: + excludes: + - G404 gocritic: disabled-checks: - appendAssign