From 1d52c7513c5bca088fd8e44ff56d07c44e806967 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 16 Mar 2023 18:10:40 -0400 Subject: .golangci.yml: Tidy up --- .golangci.yml | 11 +++++------ 1 file 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 -- cgit v1.1-4-g5e80