github.com/kubewharf/katalyst-core@v0.5.3/.golangci.yml (about)

     1  # options for analysis running
     2  run:
     3    # default concurrency is the available CPU number
     4    concurrency: 16
     5  
     6    # timeout for analysis, e.g. 30s, 5m, default is 1m
     7    timeout: 10m
     8  
     9    # exit code when at least one issue was found, default is 1
    10    issues-exit-code: 1
    11  
    12    # include test files or not, default is true
    13    tests: true
    14  
    15    # which dirs to skip: they won't be analyzed;
    16    # can use regexp here: generated.*, regexp is applied on full path;
    17    # default value is empty list, but next dirs are always skipped independently
    18    # from this option's value:
    19    # third_party$, testdata$, examples$, Godeps$, builtin$
    20    skip-dirs:
    21      - pkg/client
    22      - vendor
    23      - test
    24  
    25  # output configuration options
    26  output:
    27    # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
    28    format: colored-line-number
    29  
    30    # print lines of code with issue, default is true
    31    print-issued-lines: true
    32  
    33    # print linter name in the end of issue text, default is true
    34    print-linter-name: true
    35  
    36  
    37  # all available settings of specific linters
    38  linters-settings:
    39    golint:
    40      # minimal confidence for issues, default is 0.8
    41      min-confidence: 0.8
    42    gofmt:
    43      # simplify code: gofmt with `-s` option, true by default
    44      simplify: true
    45    goimports:
    46      # put imports beginning with prefix after 3rd-party packages;
    47      # it's a comma-separated list of prefixes
    48      local-prefixes: github.com/kubewharf
    49    misspell:
    50      # Correct spellings using locale preferences for US or UK.
    51      # Default is to use a neutral variety of English.
    52      # Setting locale to US will correct the British spelling of 'colour' to 'color'.
    53      locale: US
    54  
    55  linters:
    56    fast: false
    57    disable-all: true
    58    enable:
    59      - deadcode
    60      - gofmt
    61      - goimports
    62      - govet
    63      - ineffassign
    64      - misspell
    65      - unconvert
    66      - staticcheck