github.com/dominant-strategies/go-quai@v0.28.2/.golangci.yml (about)

     1  # This file configures github.com/golangci/golangci-lint.
     2  
     3  run:
     4    timeout: 3m
     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      - tests
    12      - metrics/counter_test.go
    13      - metrics/histogram_test.go
    14      - metrics/sample_test.go
    15      - metrics/writer_test.go
    16      - metrics/init_test.go
    17      - metrics/metrics_test.go
    18      - metrics/opentsdb_test.go
    19      - metrics/graphite_test.go
    20      - metrics/ewma_test.go
    21      - metrics/timer_test.go
    22      - metrics/json_test.go
    23      - metrics/gauge_float64_test.go
    24      - metrics/registry_test.go
    25      - metrics/gauge_test.go
    26      - metrics/prometheus/collector_test.go
    27      - metrics/runtime_test.go
    28      - metrics/meter_test.go
    29      - metrics/resetting_timer_test.go
    30      - metrics/debug_test.go
    31      - cmd/go-quai/genesis_test.go
    32      - cmd/go-quai/accountcmd_test.go
    33      - cmd/go-quai/run_test.go
    34      - cmd/utils/flags_test.go
    35      - cmd/utils/customflags_test.go
    36      - cmd/utils/prompt_test.go
    37      - cmd/go-quai/les_test.go
    38      - consensus/misc/eip1559_test.go
    39      - consensus/blake3pow/blake3pow_test.go
    40      - consensus/blake3pow/sealer_test.go
    41      - consensus/blake3pow/consensus_test.go
    42      - crypto/blake2b/blake2b_test.go
    43      - crypto/blake2b/blake2b_f_test.go
    44      - crypto/ecies/ecies_test.go
    45      - crypto/signify/signify_test.go
    46      - crypto/signature_test.go
    47      - crypto/crypto_test.go
    48      - core/genesis_test.go
    49      - core/tx_list_test.go
    50      - core/headerchain_test.go
    51      - core/types/transaction_test.go
    52      - core/types/log_test.go
    53      - core/types/hashing_test.go
    54      - core/types/block_test.go
    55      - core/types/transaction_signing_test.go
    56      - core/types/bloom9_test.go
    57      - core/types/receipt_test.go
    58      - core/tx_pool_test.go
    59      - core/rawdb/table_test.go
    60      - core/rawdb/accessors_indexes_test.go
    61      - core/rawdb/chain_iterator_test.go
    62      - core/rawdb/database_test.go
    63      - core/rawdb/freezer_table_test.go
    64      - core/rawdb/accessors_chain_test.go
    65      - core/block_validator_test.go
    66      - core/chain_indexer_test.go
    67      - core/dao_test.go
    68      - core/blockchain_snapshot_test.go
    69      - core/blockchain_repair_test.go
    70      - core/forkid/forkid_test.go
    71      - core/blockchain_sethead_test.go
    72      - core/state/state_object_test.go
    73      - core/state/snapshot/generate_test.go
    74      - core/state/snapshot/iterator_test.go
    75      - core/state/snapshot/snapshot_test.go
    76      - core/state/snapshot/disklayer_test.go
    77      - core/state/snapshot/wipe_test.go
    78      - core/state/snapshot/difflayer_test.go
    79      - core/state/statedb_test.go
    80      - core/state/sync_test.go
    81      - core/state/trie_prefetcher_test.go
    82      - core/state/iterator_test.go
    83      - core/state/state_test.go
    84      - core/bloombits/scheduler_test.go
    85      - core/bloombits/matcher_test.go
    86      - core/bloombits/generator_test.go
    87      - core/vm/gas_table_test.go
    88      - core/vm/runtime/runtime_example_test.go
    89      - core/vm/runtime/runtime_test.go
    90      - core/vm/analysis_test.go
    91      - core/vm/instructions_test.go
    92      - core/vm/contracts_test.go
    93      - core/vm/logger_test.go
    94      - core/blockchain_test.go
    95      - core/rlp_test.go
    96      - core/state_processor_test.go
    97      - core/bench_test.go
    98      - core/chain_makers_test.go
    99      - quaistats/quaistats_test.go
   100      - tests/transaction_test.go
   101      - tests/init_test.go
   102      - tests/block_test.go
   103      - tests/state_test.go
   104      - tests/rlp_test.go
   105      - tests/vm_test.go
   106      - tests/fuzzers/abi/abifuzzer_test.go
   107      - tests/fuzzers/secp256k1/secp_test.go
   108      - tests/difficulty_test.go
   109      - rlp/decode_test.go
   110      - rlp/raw_test.go
   111      - rlp/iterator_test.go
   112      - rlp/encoder_example_test.go
   113      - rlp/decode_tail_test.go
   114      - rlp/encode_test.go
   115      - common/mclock/simclock_test.go
   116      - common/hexutil/hexutil_test.go
   117      - common/hexutil/json_example_test.go
   118      - common/hexutil/json_test.go
   119      - common/bitutil/compress_test.go
   120      - common/bitutil/bitutil_test.go
   121      - common/types_test.go
   122      - common/format_test.go
   123      - common/math/integer_test.go
   124      - common/math/big_test.go
   125      - common/fdlimit/fdlimit_test.go
   126      - common/prque/sstack_test.go
   127      - common/prque/lazyqueue_test.go
   128      - common/prque/prque_test.go
   129      - common/bytes_test.go
   130      - trie/stacktrie_test.go
   131      - trie/sync_test.go
   132      - trie/proof_test.go
   133      - trie/iterator_test.go
   134      - trie/encoding_test.go
   135      - trie/database_test.go
   136      - trie/node_test.go
   137      - trie/secure_trie_test.go
   138      - trie/trie_test.go
   139      - params/config_test.go
   140      - p2p/enr/enr_test.go
   141      - p2p/discover/table_test.go
   142      - p2p/discover/v5_udp_test.go
   143      - p2p/discover/v5wire/encoding_test.go
   144      - p2p/discover/v5wire/crypto_test.go
   145      - p2p/discover/table_util_test.go
   146      - p2p/rlpx/rlpx_test.go
   147      - p2p/rlpx/buffer_test.go
   148      - p2p/util_test.go
   149      - p2p/dial_test.go
   150      - p2p/nat/nat_test.go
   151      - p2p/nat/natupnp_test.go
   152      - p2p/enode/iter_test.go
   153      - p2p/enode/idscheme_test.go
   154      - p2p/enode/nodedb_test.go
   155      - p2p/enode/urlv4_test.go
   156      - p2p/enode/localnode_test.go
   157      - p2p/enode/node_test.go
   158      - p2p/message_test.go
   159      - p2p/msgrate/msgrate_test.go
   160      - p2p/transport_test.go
   161      - p2p/netutil/iptrack_test.go
   162      - p2p/netutil/net_test.go
   163      - p2p/netutil/error_test.go
   164      - p2p/dnsdisc/sync_test.go
   165      - p2p/dnsdisc/tree_test.go
   166      - p2p/dnsdisc/client_test.go
   167      - p2p/peer_test.go
   168      - p2p/server_test.go
   169      - log/format_test.go
   170      - eth/filters/filter_test.go
   171      - eth/filters/bench_test.go
   172      - eth/filters/filter_system_test.go
   173      - eth/filters/api_test.go
   174      - eth/gasprice/feehistory_test.go
   175      - eth/gasprice/gasprice_test.go
   176      - eth/handler_eth_test.go
   177      - eth/sync_test.go
   178      - eth/fetcher/block_fetcher_test.go
   179      - eth/fetcher/tx_fetcher_test.go
   180      - eth/downloader/downloader_test.go
   181      - eth/downloader/queue_test.go
   182      - eth/downloader/testchain_test.go
   183      - eth/abi/unpack_test.go
   184      - eth/abi/event_test.go
   185      - eth/abi/reflect_test.go
   186      - eth/abi/method_test.go
   187      - eth/abi/packing_test.go
   188      - eth/abi/abi_test.go
   189      - eth/abi/type_test.go
   190      - eth/abi/bind/bind_test.go
   191      - eth/abi/topics_test.go
   192      - eth/abi/pack_test.go
   193      - eth/handler_test.go
   194      - eth/api_test.go
   195      - eth/protocols/eth/protocol_test.go
   196      - eth/protocols/eth/handshake_test.go
   197      - eth/protocols/eth/handler_test.go
   198      - eth/protocols/eth/peer_test.go
   199      - node/utils_test.go
   200      - node/node_example_test.go
   201      - node/rpcstack_test.go
   202      - node/node_test.go
   203      - node/config_test.go
   204      - node/api_test.go
   205      - rpc/testservice_test.go
   206      - rpc/http_test.go
   207      - rpc/types_test.go
   208      - rpc/websocket_test.go
   209      - rpc/subscription_test.go
   210      - rpc/client_example_test.go
   211      - rpc/client_test.go
   212      - rpc/server_test.go
   213      - event/example_test.go
   214      - event/event_test.go
   215      - event/example_feed_test.go
   216      - event/subscription_test.go
   217      - event/example_scope_test.go
   218      - event/feed_test.go
   219      - event/example_subscription_test.go
   220      - ethdb/leveldb/leveldb_test.go
   221      - ethdb/memorydb/memorydb_test.go
   222      - quaiclient/ethclient/ethclient_test.go
   223  
   224  linters:
   225    disable-all: true
   226    enable:
   227      - goconst
   228      - goimports
   229      - gosimple
   230      - govet
   231      - ineffassign
   232      - misspell
   233      - staticcheck
   234      - unconvert
   235      - unused
   236      - typecheck
   237  
   238  linters-settings:
   239    gofmt:
   240      simplify: true
   241    goconst:
   242      min-len: 3 # minimum length of string constant
   243      min-occurrences: 6 # minimum number of occurrences
   244  
   245  issues:
   246    exclude-rules:
   247      - path: crypto/blake2b/
   248        linters:
   249          - deadcode
   250      - path: crypto/bn256/cloudflare
   251        linters:
   252          - deadcode
   253      - path: p2p/discv5/
   254        linters:
   255          - deadcode
   256      - path: core/vm/instructions_test.go
   257        linters:
   258          - goconst
   259      - path: internal/build/pgp.go
   260        text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
   261    exclude:
   262      - 'SA1019: event.TypeMux is deprecated: use Feed'