github.com/sealerio/sealer@v0.11.1-0.20240507115618-f4f89c5853ae/.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    skip-files:
    13      - go.mod
    14      - go.sum
    15  
    16    modules-download-mode: vendor
    17  
    18    build-tags:
    19      - containers_image_openpgp
    20  
    21  linters:
    22    # please, do not use `enable-all`: it's deprecated and will be removed soon.
    23    # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
    24    disable-all: true
    25    enable:
    26      - gofmt
    27      - goimports
    28      - revive
    29      - stylecheck
    30      - goconst
    31      - gosimple
    32      - misspell
    33      - whitespace
    34      - ineffassign
    35      - vet
    36      - typecheck
    37      - errcheck
    38      - govet
    39      - staticcheck
    40      - unused
    41      - nilerr
    42      - unparam
    43      - unconvert
    44  
    45  issues:
    46    exclude-rules:
    47      - linters:
    48          - golint
    49        text: "AccessKeyId"
    50      - linters:
    51          - typecheck
    52        text: "has no field or method"
    53      - linters:
    54          - revive
    55        text: "just return error instead"
    56  
    57  # golangci.com configuration
    58  # https://github.com/golangci/golangci/wiki/Configuration
    59  service:
    60    # use the fixed version to not introduce new linters unexpectedly
    61    golangci-lint-version: 1.44.0