diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-26 22:57:27 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-29 02:14:51 -0700 |
commit | 7896d7c7fe62955bbe5e9251fce016e2548794e8 (patch) | |
tree | 2554394c3cb9982a282a72925680e75e96e6a822 /.golangci.yml | |
parent | deb6d17fefa89f3301bf68b883640d187e40d4ee (diff) |
.golangci.yml: Turn on gosec and nolintlint
These are linters that I always like to give extra configuration to.
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 9 |
1 files changed, 9 insertions, 0 deletions
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 |