github.com/theQRL/go-zond@v0.2.1/.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  
    10  linters:
    11    disable-all: true
    12    enable:
    13      - goimports
    14      - gosimple
    15      - govet
    16      - ineffassign
    17      - misspell
    18      - unconvert
    19      - typecheck
    20      - unused
    21      - staticcheck
    22      - bidichk
    23      - durationcheck
    24      - exportloopref
    25      - whitespace
    26  
    27      # - structcheck # lots of false positives
    28      # - errcheck #lot of false positives
    29      # - contextcheck
    30      # - errchkjson # lots of false positives
    31      # - errorlint # this check crashes
    32      # - exhaustive # silly check
    33      # - makezero # false positives
    34      # - nilerr # several intentional
    35  
    36  linters-settings:
    37    gofmt:
    38      simplify: true
    39  
    40  issues:
    41    exclude-files:
    42      - core/genesis_alloc.go
    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: accounts/usbwallet/trezor.go
    51        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    52      - path: accounts/usbwallet/trezor/
    53        text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
    54    exclude:
    55      - 'SA1019: event.TypeMux is deprecated: use Feed'
    56      - 'SA1019: strings.Title is deprecated'
    57      - '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.'
    58      - 'SA1029: should not use built-in type string as key for value'