summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-03-16 18:10:40 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-16 18:13:42 -0400
commit1d52c7513c5bca088fd8e44ff56d07c44e806967 (patch)
tree59edbf1e5661a78bcf399c0b0adf680c56843791 /.golangci.yml
parentc0f33186aa7a8903c5e7406024f13fad48cd14e3 (diff)
.golangci.yml: Tidy up
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 38d53ee..7ba2e5a 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -7,7 +7,7 @@ linters:
disable:
# Deprecated
- deadcode # deprecated, replaced by 'unused'
- - exhaustivestruct # deprecated, replaced by 'exhauststruct'
+ - exhaustivestruct # deprecated, replaced by 'exhaustruct'
- golint # deprecated, replaced by 'revive'
- ifshort # deprecated
- interfacer # deprecated
@@ -19,7 +19,6 @@ linters:
# Don't support Go 1.18 generics yet
- rowserrcheck
- - sqlclosecheck
- wastedassign
- ireturn # golangci-lint doesn't claim it doesn't, but it doesn't
@@ -48,7 +47,7 @@ linters:
- exhaustruct
- gochecknoglobals
- gochecknoinits
- - revive
+ - revive # TODO: get this to pass
- testpackage
- thelper
- varnamelen
@@ -90,9 +89,9 @@ linters-settings:
checks:
- "all"
- "-ST1003" # CONST_VAL names for consistency with other btrfs code
- - "-ST1000" # TODO: get this to pass
- - "-ST1020" # TODO: get this to pass
- - "-ST1021" # TODO: get this to pass
+ - "-ST1000" # TODO: get this to pass: "at least one file in a package should have a package comment"
+ - "-ST1020" # TODO: get this to pass: "comment on exported method XXX should be of the form "XXX ...""
+ - "-ST1021" # TODO: get this to pass: "comment on exported type XXX should be of the form "XXX ...""
tagliatelle:
case:
use-field-name: true