github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/.golangci.yml (about)

     1  # This file configures github.com/golangci/golangci-lint.
     2  
     3  run:
     4    timeout: 2m
     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      - deadcode
    14      - goconst
    15      - goimports
    16      - gosimple
    17      - govet
    18      - ineffassign
    19      - misspell
    20      # - staticcheck
    21      - unconvert
    22      # - unused
    23      - varcheck
    24  
    25  linters-settings:
    26    gofmt:
    27      simplify: true
    28    goconst:
    29      min-len: 3 # minimum length of string constant
    30      min-occurrences: 6 # minimum number of occurrences
    31  
    32  issues:
    33    exclude-rules:
    34      - path: crypto/blake2b/
    35        linters:
    36          - deadcode
    37      - path: crypto/bn256/cloudflare
    38        linters:
    39          - deadcode
    40      - path: p2p/discv5/
    41        linters:
    42          - deadcode
    43      - path: core/vm/instructions_test.go
    44        linters:
    45          - goconst