From 7896d7c7fe62955bbe5e9251fce016e2548794e8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 Jan 2023 22:57:27 -0700 Subject: .golangci.yml: Turn on gosec and nolintlint These are linters that I always like to give extra configuration to. --- .golangci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 4ac5ccb..fce8563 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,6 +9,8 @@ linters: - gci - gofmt - gofumpt + - gosec + - nolintlint linters-settings: gci: sections: @@ -17,6 +19,12 @@ linters-settings: - prefix(git.lukeshu.com/go/lowmemjson) gofmt: simplify: true + gosec: + excludes: + - G104 # duplicates errcheck + nolintlint: + require-explanation: true + require-specific: true issues: exclude-use-default: false exclude-rules: @@ -24,5 +32,6 @@ issues: linters: - errcheck - gofumpt + - gosec max-issues-per-linter: 0 max-same-issues: 0 -- cgit v1.2.3-2-g168b