run: tests: true linters: disable-all: true enable: - bodyclose - deadcode - depguard - dupl - errcheck - gocritic - gofmt - goimports - gosimple - govet - ineffassign - misspell - nakedret - prealloc - staticcheck - structcheck - typecheck - unconvert - unused - varcheck - lll - nestif - thelper - nonamedreturns linters-settings: lll: line-length: 150 misspell: ignore-words: - autor issues: exclude-rules: # Exclude some linters from running on tests files. - path: _test\.go linters: - dupl - linters: - lll source: "^//go:generate "