github.com/dubbogo/gost@v1.14.0/.golangci.yml (about)

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