.golangci.toml

  1version = '2'
  2
  3[run]
  4concurrency = 8
  5go = ''
  6modules-download-mode = 'readonly'
  7issues-exit-code = 1
  8tests = true
  9
 10[output]
 11path-prefix = ''
 12
 13[linters]
 14enable = [
 15  'asasalint',
 16  'asciicheck',
 17  'bidichk',
 18  'bodyclose',
 19  'containedctx',
 20  'contextcheck',
 21  'cyclop',
 22  'decorder',
 23  'dogsled',
 24  'dupl',
 25  'dupword',
 26  'durationcheck',
 27  'err113',
 28  'errchkjson',
 29  'errname',
 30  'errorlint',
 31  'exhaustive',
 32  'exhaustruct',
 33  'forcetypeassert',
 34  'funlen',
 35  'gocheckcompilerdirectives',
 36  'gocognit',
 37  'gocritic',
 38  'gocyclo',
 39  'godot',
 40  'godox',
 41  'gomoddirectives',
 42  'gomodguard',
 43  'goprintffuncname',
 44  'gosec',
 45  'grouper',
 46  'importas',
 47  'interfacebloat',
 48  'ireturn',
 49  'lll',
 50  'loggercheck',
 51  'maintidx',
 52  'makezero',
 53  'misspell',
 54  'musttag',
 55  'nakedret',
 56  'nestif',
 57  'nilerr',
 58  'nilnil',
 59  'noctx',
 60  'nolintlint',
 61  'nonamedreturns',
 62  'nosprintfhostport',
 63  'paralleltest',
 64  'prealloc',
 65  'predeclared',
 66  'promlinter',
 67  'reassign',
 68  'revive',
 69  'rowserrcheck',
 70  'sqlclosecheck',
 71  'staticcheck',
 72  'tagliatelle',
 73  'testableexamples',
 74  'testpackage',
 75  'thelper',
 76  'tparallel',
 77  'unconvert',
 78  'unparam',
 79  'usestdlibvars',
 80  'varnamelen',
 81  'wastedassign',
 82  'whitespace',
 83  'wrapcheck',
 84  'wsl',
 85]
 86
 87[linters.exclusions]
 88generated = 'lax'
 89presets = ['comments', 'common-false-positives', 'legacy', 'std-error-handling']
 90paths = ['frontend', 'third_party$', 'builtin$', 'examples$']
 91
 92[issues]
 93max-issues-per-linter = 0
 94max-same-issues = 0
 95new = false
 96fix = false
 97
 98[formatters]
 99enable = ['gci', 'gofumpt', 'goimports']
100
101[formatters.exclusions]
102generated = 'lax'
103paths = ['frontend', 'third_party$', 'builtin$', 'examples$']