github.com/bufbuild/connect-grpchealth-go@v1.1.1/.golangci.yml (about) 1 run: 2 skip-dirs-use-default: false 3 linters-settings: 4 errcheck: 5 check-type-assertions: true 6 exhaustruct: 7 include: 8 # No zero values for param structs. 9 - 'github\.com/bufbuild/connect-grpchealth-go\..*[pP]arams' 10 forbidigo: 11 forbid: 12 - '^fmt\.Print' 13 - '^log\.' 14 - '^print$' 15 - '^println$' 16 - '^panic$' 17 godox: 18 # TODO, OPT, etc. comments are fine to commit. Use FIXME comments for 19 # temporary hacks, and use godox to prevent committing them. 20 keywords: [FIXME] 21 varnamelen: 22 ignore-decls: 23 - T any 24 - i int 25 - 't *testing.T' 26 - tb testing.TB 27 - wg sync.WaitGroup 28 linters: 29 enable-all: true 30 disable: 31 - cyclop # covered by gocyclo 32 - deadcode # abandoned 33 - exhaustivestruct # replaced by exhaustruct 34 - funlen # rely on code review to limit function length 35 - gocognit # dubious "cognitive overhead" quantification 36 - gofumpt # prefer standard gofmt 37 - goimports # rely on gci instead 38 - golint # deprecated by Go team 39 - gomnd # some unnamed constants are okay 40 - ifshort # deprecated by author 41 - interfacer # deprecated by author 42 - ireturn # "accept interfaces, return structs" isn't ironclad 43 - lll # don't want hard limits for line length 44 - maintidx # covered by gocyclo 45 - maligned # readability trumps efficient struct packing 46 - nlreturn # generous whitespace violates house style 47 - nosnakecase # deprecated in https://github.com/golangci/golangci-lint/pull/3065 48 - scopelint # deprecated by author 49 - structcheck # abandoned 50 - testpackage # internal tests are fine 51 - varcheck # abandoned 52 - wrapcheck # don't _always_ need to wrap errors 53 - wsl # generous whitespace violates house style 54 issues: 55 exclude: 56 # Don't ban use of fmt.Errorf to create new errors, but the remaining 57 # checks from err113 are useful. 58 - "err113: do not define dynamic errors.*"