github.com/Unheilbar/quorum@v1.0.0/.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      - goconst
    16      - goimports
    17      - gosimple
    18      - govet
    19      - ineffassign
    20      - misspell
    21      - unconvert
    22      - typecheck
    23      - unused
    24      - staticcheck
    25      - bidichk
    26      - durationcheck
    27      - exportloopref
    28      - whitespace
    29  
    30      # - structcheck # lots of false positives
    31      # - errcheck #lot of false positives
    32      # - contextcheck
    33      # - errchkjson # lots of false positives
    34      # - errorlint # this check crashes
    35      # - exhaustive # silly check
    36      # - makezero # false positives
    37      # - nilerr # several intentional
    38  
    39  linters-settings:
    40    gofmt:
    41      simplify: true
    42    goconst:
    43      min-len: 3 # minimum length of string constant
    44      min-occurrences: 6 # minimum number of occurrences
    45  
    46  issues:
    47    exclude-rules:
    48      - path: crypto/bn256/cloudflare/optate.go
    49        linters:
    50          - deadcode
    51          - staticcheck
    52      - path: internal/build/pgp.go
    53        text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
    54      - path: core/vm/contracts.go
    55        text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
    56      - path: accounts/usbwallet/trezor.go
    57        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    58      - path: accounts/usbwallet/trezor/
    59        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    60      - path: plugin/account/internal/testutils/matchers.go
    61        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    62      - path: rpc/
    63        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    64      - path: rpc/
    65        text: 'SA1019: "github.com/golang/protobuf/ptypes" is deprecated: Well-known types have specialized functionality directly injected into the generated packages for each message type. See the deprecation notice for each function for the suggested alternative'
    66    exclude:
    67      - 'SA1019: event.TypeMux is deprecated: use Feed'
    68      - 'SA1019: strings.Title is deprecated'
    69      - '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.'
    70      - 'SA1029: should not use built-in type string as key for value'