github.com/be-b10g/golangci-lint@v1.17.2/.golangci.yml (about)

     1  linters-settings:
     2    govet:
     3      check-shadowing: true
     4      settings:
     5        printf:
     6          funcs:
     7            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
     8            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
     9            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
    10            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
    11    golint:
    12      min-confidence: 0
    13    gocyclo:
    14      min-complexity: 10
    15    maligned:
    16      suggest-new: true
    17    dupl:
    18      threshold: 100
    19    goconst:
    20      min-len: 2
    21      min-occurrences: 2
    22    depguard:
    23      list-type: blacklist
    24      packages:
    25        # logging is allowed only by logutils.Log, logrus
    26        # is allowed to use only in logutils package
    27        - github.com/sirupsen/logrus
    28    misspell:
    29      locale: US
    30    lll:
    31      line-length: 140
    32    goimports:
    33      local-prefixes: github.com/golangci/golangci-lint
    34    gocritic:
    35      enabled-tags:
    36        - performance
    37        - style
    38        - experimental
    39      disabled-checks:
    40        - wrapperFunc
    41        - dupImport # https://github.com/go-critic/go-critic/issues/845
    42  
    43  linters:
    44    enable-all: true
    45    disable:
    46      - maligned
    47      - prealloc
    48      - gochecknoglobals
    49  
    50  run:
    51    skip-dirs:
    52      - test/testdata_etc
    53      - pkg/golinters/goanalysis/(checker|passes)
    54  
    55  issues:
    56    exclude-rules:
    57      - text: "weak cryptographic primitive"
    58        linters:
    59          - gosec
    60  
    61  # golangci.com configuration
    62  # https://github.com/golangci/golangci/wiki/Configuration
    63  service:
    64    golangci-lint-version: 1.17.x # use the fixed version to not introduce new linters unexpectedly
    65    prepare:
    66      - echo "here I can run custom commands, but no preparation needed for this repo"