github.com/ethersphere/bee/v2@v2.2.0/.golangci.yml (about)

     1  run:
     2    timeout: 10m
     3  linters:
     4    enable:
     5      - asciicheck
     6      - bidichk
     7      # - depguard disable temporary until this issue is resolved: https://github.com/golangci/golangci-lint/issues/3906
     8      - dogsled
     9      - durationcheck
    10      - errcheck
    11      - errname
    12      - errorlint
    13      - exportloopref
    14      - forbidigo
    15      - gochecknoinits
    16      - goconst
    17      - gofmt
    18      - goheader
    19      - goprintffuncname
    20      - gosimple
    21      - govet
    22      - importas
    23      - ineffassign
    24      - misspell
    25      - nilerr
    26      - noctx
    27      - paralleltest
    28      - prealloc
    29      - predeclared
    30      - promlinter
    31      - staticcheck
    32      - thelper
    33      - typecheck
    34      - unconvert
    35      - unused
    36  
    37  linters-settings:
    38    govet:
    39      enable-all: true
    40      disable:
    41        - fieldalignment ## temporally disabled
    42        - shadow ## temporally disabled
    43    goheader:
    44      values:
    45        regexp:
    46          date: "20[1-2][0-9]"
    47      template: |-
    48        Copyright {{date}} The Swarm Authors. All rights reserved.
    49        Use of this source code is governed by a BSD-style
    50        license that can be found in the LICENSE file.
    51    paralleltest:
    52      # Ignore missing calls to `t.Parallel()` and only report incorrect uses of `t.Parallel()`.
    53      ignore-missing: true
    54  issues:
    55    exclude-rules:
    56      - linters:
    57          - goheader
    58        text: "go-ethereum Authors" ## disable check for other authors
    59      - path: _test\.go
    60        linters:
    61          - goconst ## temporally disable goconst in test
    62      - linters:
    63          - forbidigo
    64        path: cmd/bee/cmd
    65        text: "use of `fmt.Print"   ## allow fmt.Print in cmd directory
    66      - linters:
    67          - dogsled
    68        path: pkg/api/(.+)_test\.go # temporally disable dogsled in api test files
    69      - linters:
    70          - dogsled
    71        path: pkg/pushsync/(.+)_test\.go # temporally disable dogsled in pushsync test files
    72        # temporally disable paralleltest in following packages
    73      - linters:
    74          - paralleltest
    75        path: pkg/postage
    76      - linters:
    77          - paralleltest
    78        path: pkg/log
    79      - linters:
    80          - paralleltest
    81        path: pkg/statestore
    82      - linters:
    83          - paralleltest
    84        path: pkg/storer
    85      - linters:
    86          - paralleltest
    87        path: pkg/storage