github.com/aakash4dev/cometbft@v0.38.2/.golangci.yml (about)

     1  linters:
     2    enable:
     3      - asciicheck
     4      - bodyclose
     5      - depguard
     6      - dogsled
     7      - dupl
     8      - errcheck
     9      - exportloopref
    10      - goconst
    11      - gofmt
    12      - goimports
    13      - revive
    14      - gosec
    15      - gosimple
    16      - govet
    17      - ineffassign
    18      - misspell
    19      - nakedret
    20      - nolintlint
    21      - prealloc
    22      - staticcheck
    23      # - structcheck // to be fixed by golangci-lint
    24      - stylecheck
    25      - typecheck
    26      - unconvert
    27      - unused
    28  
    29  issues:
    30    exclude-rules:
    31      - path: _test\.go
    32        linters:
    33          - gosec
    34    max-same-issues: 50
    35  
    36  linters-settings:
    37    dogsled:
    38      max-blank-identifiers: 3
    39    golint:
    40      min-confidence: 0
    41    maligned:
    42      suggest-new: true
    43    misspell:
    44      locale: US
    45    depguard:
    46      rules:
    47        main:
    48          files:
    49            - $all
    50            - "!$test"
    51          allow:
    52            - $gostd
    53            - github.com/cometbft
    54            - github.com/cosmos
    55            - github.com/btcsuite/btcd/btcec/v2
    56            - github.com/BurntSushi/toml
    57            - github.com/go-git/go-git/v5
    58            - github.com/go-kit
    59            - github.com/go-logfmt/logfmt
    60            - github.com/gofrs/uuid
    61            - github.com/google
    62            - github.com/gorilla/websocket
    63            - github.com/informalsystems/tm-load-test/pkg/loadtest
    64            - github.com/lib/pq
    65            - github.com/libp2p/go-buffer-pool
    66            - github.com/Masterminds/semver/v3
    67            - github.com/minio/highwayhash
    68            - github.com/oasisprotocol/curve25519-voi
    69            - github.com/pkg/errors
    70            - github.com/prometheus
    71            - github.com/rcrowley/go-metrics
    72            - github.com/rs/cors
    73            - github.com/snikch/goodman
    74            - github.com/spf13
    75            - github.com/stretchr/testify/require
    76            - github.com/syndtr/goleveldb
    77        test:
    78          files:
    79            - "$test"
    80          allow:
    81            - $gostd
    82            - github.com/cosmos
    83            - github.com/cometbft
    84            - github.com/adlio/schema
    85            - github.com/btcsuite/btcd
    86            - github.com/fortytw2/leaktest
    87            - github.com/go-kit
    88            - github.com/google/uuid
    89            - github.com/gorilla/websocket
    90            - github.com/lib/pq
    91            - github.com/oasisprotocol/curve25519-voi/primitives/merlin
    92            - github.com/ory/dockertest
    93            - github.com/pkg/errors
    94            - github.com/prometheus/client_golang/prometheus/promhttp
    95            - github.com/spf13
    96            - github.com/stretchr/testify