linters: enable: - asciicheck - bidichk - bodyclose - dogsled - dupl - durationcheck - errcheck - errchkjson - errorlint - exhaustive - exportloopref - funlen - gochecknoglobals - gochecknoinits - gocognit - goconst - gocritic - gocyclo - godox - gofmt - goimports - gomnd - gomodguard - gosec - gosimple - govet - grouper - importas - ineffassign - lll - makezero - misspell - nakedret - nestif - nilerr - nilnil - nlreturn - nolintlint - nosprintfhostport - prealloc - predeclared - revive - sqlclosecheck - staticcheck - stylecheck - tenv - typecheck - unconvert - unparam - unused - usestdlibvars - wastedassign - whitespace - wsl disable: - noctx - contextcheck - scopelint - structcheck - deadcode - varcheck - forbidigo - gosmopolitan disable-all: false presets: - bugs - unused fast: false linters-settings: gomnd: ignored-numbers: - '0666' issues: exclude-rules: # Exclude some linters from running on tests files. - path: _test\.go linters: - dupl - funlen - gochecknoglobals - gosec