github.com/nats-io/nats-server/v2@v2.11.0-preview.2/.golangci.yml (about)

     1  # Config file for golangci-lint
     2  run:
     3    concurrency: 4
     4    deadline: 1m
     5    issues-exit-code: 1
     6    tests: true
     7    skip-dirs:
     8      - .github
     9      - doc
    10      - docker
    11      - logos
    12      - scripts
    13      - util
    14    modules-download-mode: readonly
    15  
    16  output:
    17    format: colored-line-number
    18    print-issued-lines: true
    19    print-linter-name: true
    20  
    21  linters:
    22    disable-all: true
    23    enable:
    24      # - errcheck
    25      - forbidigo
    26      - gofmt
    27      # - goimports
    28      - gosimple
    29      - govet
    30      - ineffassign
    31      # - maligned
    32      - megacheck
    33      - misspell
    34      # - prealloc
    35      - staticcheck
    36      # - unparam
    37      - unused
    38  
    39  linters-settings:
    40    errcheck:
    41      check-type-assertions: false
    42      check-blank: false
    43    forbidigo:
    44      forbid:
    45        - ^fmt\.Print(f|ln)?$
    46    govet:
    47      check-shadowing: false
    48      settings:
    49        printf:
    50          funcs:
    51            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
    52            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
    53            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
    54            - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
    55    gofmt:
    56      simple: true
    57    misspell:
    58      locale: US
    59    unparam:
    60      check-exported: false
    61    prealloc:
    62      simple: true
    63      range-loops: true
    64      for-loops: true
    65  
    66  issues:
    67    exclude-rules:
    68      - path: "main.go" # Excludes main usage
    69        linters: [forbidigo]
    70      - source: "nats-server: v%s" # Excludes PrintServerAndExit
    71        linters: [forbidigo]
    72      - path: "server/opts.go" # Excludes TLS usage options
    73        linters: [forbidigo]
    74      - path: "_test.go" # Excludes unit tests
    75        linters: [forbidigo]