github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/.golangci.yaml (about)

     1  run:
     2    timeout: 5m
     3  
     4  linters-settings:
     5    gci:
     6      sections:
     7        - standard
     8        - default
     9        - prefix(github.com/jxskiss/gopkg)
    10    golint:
    11      min-confidence: 0
    12    goimports:
    13      local-prefixes: github.com/jxskiss/gopkg
    14  
    15  linters:
    16    disable-all: true
    17    enable:
    18      - bodyclose
    19      # - dogsled
    20      - dupl
    21      - durationcheck
    22      - exportloopref
    23      - gci
    24      - gofmt
    25      # - gofumpt
    26      - goimports
    27      # - gomoddirectives
    28      - goprintffuncname
    29      - govet
    30      - importas
    31      - ineffassign
    32      - makezero
    33      - misspell
    34      - nakedret
    35      - nilerr
    36      - noctx
    37      - nolintlint
    38      - prealloc
    39      # - predeclared
    40      - revive
    41      - rowserrcheck
    42      - sqlclosecheck
    43      - staticcheck
    44      - stylecheck
    45      - tparallel
    46      - typecheck
    47      - unconvert
    48      - unparam
    49      - unused
    50      - wastedassign
    51      - whitespace
    52  
    53  issues:
    54    exclude-rules:
    55      - path: 'internal/linkname/(.+).go'
    56        linters:
    57          - govet
    58          - revive
    59          - stylecheck
    60      - path: 'unsafe/(.+)\.go'
    61        linters:
    62          - govet
    63          - predeclared
    64          - revive
    65          - stylecheck
    66          - unparam
    67          - unused
    68          - nolintlint
    69      - path: '(.+)_test\.go'
    70        linters:
    71          - errcheck
    72          - funlen
    73          - goconst
    74          - ineffassign
    75          - revive
    76          - staticcheck
    77          - stylecheck
    78          - unparam
    79          - unused
    80          - whitespace