.golangci.yml raw

   1  run:
   2    timeout: 5m
   3    skip-files: [ ]
   4    skip-dirs: [ ]
   5  
   6  linters-settings:
   7    govet:
   8      enable-all: true
   9      disable:
  10        - fieldalignment
  11    gocyclo:
  12      min-complexity: 15
  13    maligned:
  14      suggest-new: true
  15    goconst:
  16      min-len: 5
  17      min-occurrences: 3
  18    misspell:
  19      locale: US
  20    funlen:
  21      lines: -1
  22      statements: 40
  23    godox:
  24      keywords:
  25        - FIXME
  26    gofumpt:
  27      extra-rules: true
  28    depguard:
  29      list-type: blacklist
  30      include-go-root: false
  31      packages:
  32        - github.com/sirupsen/logrus
  33        - github.com/pkg/errors
  34    gocritic:
  35      enabled-tags:
  36        - diagnostic
  37        - style
  38        - performance
  39      disabled-checks:
  40        - sloppyReassign
  41        - rangeValCopy
  42        - octalLiteral
  43        - paramTypeCombine # already handle by gofumpt.extra-rules
  44      settings:
  45        hugeParam:
  46          sizeThreshold: 100
  47  
  48  linters:
  49    enable-all: true
  50    disable:
  51      - maligned # deprecated
  52      - interfacer # deprecated
  53      - scopelint # deprecated
  54      - golint # deprecated
  55      - exhaustivestruct # deprecated
  56      - sqlclosecheck # not relevant (SQL)
  57      - rowserrcheck # not relevant (SQL)
  58      - cyclop # duplicate of gocyclo
  59      - lll
  60      - dupl
  61      - wsl
  62      - nlreturn
  63      - gomnd
  64      - goerr113
  65      - wrapcheck
  66      - exhaustive
  67      - exhaustruct
  68      - testpackage
  69      - tparallel
  70      - paralleltest
  71      - prealloc
  72      - ifshort
  73      - forcetypeassert
  74      - noctx
  75      - varnamelen
  76  
  77  issues:
  78    exclude-use-default: false
  79    max-per-linter: 0
  80    max-same-issues: 0
  81    exclude:
  82      - "ST1000:"
  83    exclude-rules:
  84      - path: .*_test.go
  85        linters:
  86          - funlen
  87          - bodyclose
  88      - path: client.go
  89        text: 'yodaStyleExpr: consider to change order in expression to c > 200'
  90