github.com/iotexproject/iotex-core@v1.14.1-rc1/.golangci.yml (about)

     1  run:
     2    timeout: 2m
     3    skip-dirs:
     4      - .git
     5      - proto
     6      - vendor
     7      - network/proto
     8      - explorer/idl
     9      - test
    10  
    11  linters-settings:
    12    govet:
    13      check-shadowing: true
    14    gocyclo:
    15      min-complexity: 15
    16    maligned:
    17      suggest-new: true
    18    dupl:
    19      threshold: 100
    20    goconst:
    21      min-len: 2
    22      min-occurrences: 2
    23    depguard:
    24      list-type: blacklist
    25    misspell:
    26      locale: US
    27    lll:
    28      line-length: 140
    29    goimports:
    30      local-prefixes: github.com/iotexproject/iotex-core
    31    gocritic:
    32      enabled-tags:
    33        - diagnostic
    34        - experimental
    35        - opinionated
    36        - performance
    37        - style
    38      disabled-checks:
    39        - wrapperFunc
    40        - dupImport # https://github.com/go-critic/go-critic/issues/845
    41        - ifElseChain
    42        - octalLiteral
    43    funlen:
    44      lines: 150
    45      statements: 50
    46  
    47  linters:
    48    # please, do not use `enable-all`: it's deprecated and will be removed soon.
    49    # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
    50    disable-all: true
    51    enable:
    52      - bodyclose
    53      - deadcode
    54      - depguard
    55      - dogsled
    56      - dupl
    57      - errcheck
    58      - funlen
    59      - gochecknoinits
    60      - goconst
    61      - gocritic
    62      - gocyclo
    63      - gofmt
    64      - goimports
    65      - gosec
    66      - gosimple
    67      - govet
    68      - ineffassign
    69      - interfacer
    70      - lll
    71      - misspell
    72      - nakedret
    73      - scopelint
    74      - staticcheck
    75      - structcheck
    76      - stylecheck
    77      - typecheck
    78      - unconvert
    79      - unparam
    80      - unused
    81      - varcheck
    82      - whitespace