github.com/ethereum/go-ethereum@v1.14.3/.golangci.yml (about)

     1  # This file configures github.com/golangci/golangci-lint.
     2  
     3  run:
     4    timeout: 20m
     5    tests: true
     6    # default is true. Enables skipping of directories:
     7    #   vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
     8    skip-dirs-use-default: true
     9    skip-files:
    10      - core/genesis_alloc.go
    11  
    12  linters:
    13    disable-all: true
    14    enable:
    15      - goimports
    16      - gosimple
    17      - govet
    18      - ineffassign
    19      - misspell
    20      - unconvert
    21      - typecheck
    22      - unused
    23      - staticcheck
    24      - bidichk
    25      - durationcheck
    26      - exportloopref
    27      - whitespace
    28  
    29      # - structcheck # lots of false positives
    30      # - errcheck #lot of false positives
    31      # - contextcheck
    32      # - errchkjson # lots of false positives
    33      # - errorlint # this check crashes
    34      # - exhaustive # silly check
    35      # - makezero # false positives
    36      # - nilerr # several intentional
    37  
    38  linters-settings:
    39    gofmt:
    40      simplify: true
    41  
    42  issues:
    43    exclude-rules:
    44      - path: crypto/bn256/cloudflare/optate.go
    45        linters:
    46          - deadcode
    47          - staticcheck
    48      - path: internal/build/pgp.go
    49        text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
    50      - path: core/vm/contracts.go
    51        text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
    52      - path: accounts/usbwallet/trezor.go
    53        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    54      - path: accounts/usbwallet/trezor/
    55        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    56    exclude:
    57      - 'SA1019: event.TypeMux is deprecated: use Feed'
    58      - 'SA1019: strings.Title is deprecated'
    59      - 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
    60      - 'SA1029: should not use built-in type string as key for value'