github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/.golangci.yml (about)

     1  run:
     2    # timeout for analysis, e.g. 30s, 5m, default is 1m
     3    timeout: 5m
     4  
     5    # include test files or not, default is true
     6    tests: true
     7  
     8    # default is true. Enables skipping of directories:
     9    #   vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
    10    skip-dirs-use-default: true
    11  
    12    modules-download-mode: vendor
    13  
    14  linters:
    15    # please, do not use `enable-all`: it's deprecated and will be removed soon.
    16    # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
    17    disable-all: true
    18    enable:
    19      - gofmt
    20      - goimports
    21      - golint
    22      - stylecheck
    23      - goconst
    24      - gosimple
    25      - misspell
    26      - whitespace
    27      - ineffassign
    28      - vet
    29      - typecheck
    30      - deadcode
    31      - errcheck
    32      - govet
    33      - staticcheck
    34      - structcheck
    35      - unused
    36      - varcheck
    37      - nilerr
    38      - unparam
    39      - ifshort
    40      - unconvert
    41  
    42  issues:
    43    exclude-rules:
    44      - linters:
    45          - golint
    46        text: "AccessKeyId"
    47  
    48  # golangci.com configuration
    49  # https://github.com/golangci/golangci/wiki/Configuration
    50  service:
    51    # use the fixed version to not introduce new linters unexpectedly
    52    golangci-lint-version: 1.39.0