github.com/wtsi-ssg/wrstat/v3@v3.2.3/.golangci.yml (about)

     1  run:
     2    deadline: 4m
     3    build-tags:
     4      - netgo
     5    modules-download-mode: readonly
     6  
     7  linters-settings:
     8    dupl:
     9      threshold: 100
    10    errcheck:
    11      check-type-assertions: true
    12      check-blank: true
    13    exhaustive:
    14      default-signifies-exhaustive: true
    15    funlen:
    16      lines: 30
    17      statements: 20
    18    gocognit:
    19      min-complexity: 9
    20    gocyclo:
    21      min-complexity: 7
    22    gomnd:
    23      ignored-functions:
    24        - 'strconv.Parse*'
    25    govet:
    26      check-shadowing: true
    27      enable-all: true
    28      disable-all: false
    29      disable:
    30        - fieldalignment
    31    lll:
    32      line-length: 120
    33    misspell:
    34      locale: UK
    35    nakedret:
    36      max-func-lines: 20
    37    nestif:
    38      min-complexity: 2
    39    prealloc:
    40      simple: true
    41      range-loops: true
    42      for-loops: true
    43    unparam:
    44      check-exported: true
    45    unused:
    46      check-exported: false
    47    whitespace:
    48      multi-if: true
    49      multi-func: false
    50    wsl:
    51      allow-cuddle-declarations: false
    52      force-err-cuddling: true
    53  
    54  issues:
    55    exclude-rules:
    56      - path: _test\.go
    57        linters:
    58          - funlen
    59          - maintidx
    60          - contextcheck
    61      - path: cmd
    62        linters:
    63          - gochecknoinits
    64          - gochecknoglobals
    65          - dupl
    66          - forbidigo
    67      - path: version\.go
    68        linters:
    69          - forbidigo
    70      - path: groupuser\.go
    71        linters:
    72          - dupl
    73      - path: usergroup\.go
    74        linters:
    75          - dupl
    76      - path: ch/from\.go
    77        linters:
    78          - gci
    79          - goimports
    80    max-issues-per-linter: 0
    81    max-same-issues: 0
    82    new-from-rev: master
    83  
    84  linters:
    85    disable-all: true
    86    enable:
    87      - errcheck
    88      - gosimple
    89      - govet
    90      - ineffassign
    91      - staticcheck
    92      - typecheck
    93      - unused
    94      - containedctx
    95      - contextcheck
    96      - cyclop
    97      - dogsled
    98      - dupl
    99      - durationcheck
   100      - errname
   101      - errorlint
   102      - exhaustive
   103      - exportloopref
   104      - forbidigo
   105      - forcetypeassert
   106      - funlen
   107      - gci
   108      - gochecknoglobals
   109      - gochecknoinits
   110      - gocognit
   111      - goconst
   112      - gocritic
   113      - gocyclo
   114      - godot
   115      - godox
   116      - goerr113
   117      - goimports
   118      - gomnd
   119      - gosec
   120      - importas
   121      - lll
   122      - maintidx
   123      - makezero
   124      - misspell
   125      - nakedret
   126      - nestif
   127      - nilerr
   128      - nilnil
   129      - nlreturn
   130      - noctx
   131      - nolintlint
   132      - nosprintfhostport
   133      - prealloc
   134      - predeclared
   135      - reassign
   136      - revive
   137      - stylecheck
   138      - tenv
   139      - thelper
   140      - unconvert
   141      - unparam
   142      - usestdlibvars
   143      #- wastedassign
   144      - whitespace
   145      - wsl
   146    # disable:
   147    #   - asasalint
   148    #   - asciicheck
   149    #   - bidichk
   150    #   - bodyclose
   151    #   - decorder
   152    #   - depguard
   153    #   - errchkjson
   154    #   - execinquery
   155    #   - exhaustivestruct
   156    #   - exhaustruct
   157    #   - ginkgolinter
   158    #   - gofmt
   159    #   - gofumpt
   160    #   - goheader
   161    #   - golint
   162    #   - gomoddirectives
   163    #   - gomodguard
   164    #   - goprintffuncname
   165    #   - grouper
   166    #   - ifshort
   167    #   - interfacer
   168    #   - ireturn
   169    #   - loggercheck
   170    #   - maligned
   171    #   - nonamedreturns
   172    #   - nosnakecase
   173    #   - paralleltest
   174    #   - promlinter
   175    #   - rowserrcheck
   176    #   - scopeline
   177    #   - sqlclosecheck
   178    #   - structcheck
   179    #   - tagliatelle
   180    #   - testableexamples
   181    #   - testpackage
   182    #   - tparallel
   183    #   - varcheck
   184    #   - varnamelen
   185    #   - wrapcheck