File: .golangci.yml

package info (click to toggle)
golang-github-ibm-sarama 1.46.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,080 kB
  • sloc: makefile: 40; sh: 30
file content (104 lines) | stat: -rw-r--r-- 2,057 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
version: "2"
linters:
  default: none
  enable:
  - bodyclose
  - copyloopvar
  - depguard
  - dogsled
  - errcheck
  - errorlint
  - funlen
  - gochecknoinits
  - gocritic
  - gocyclo
  - gosec
  - govet
  - misspell
  - nilerr
  - unconvert
  - unused
  - whitespace
  settings:
    depguard:
      rules:
        main:
          deny:
          - pkg: io/ioutil
            desc: Use the "io" and "os" packages instead.
    dupl:
      threshold: 100
    funlen:
      lines: 300
      statements: 300
    goconst:
      min-len: 2
      min-occurrences: 3
    gocritic:
      enabled-checks:
      - importShadow
      - nestingReduce
      - stringsCompare
      # - unnamedResult
      # - whyNoLint
      disabled-checks:
      - assignOp
      - appendAssign
      - commentedOutCode
      - hugeParam
      - ifElseChain
      - singleCaseSwitch
      - sloppyReassign
      enabled-tags:
      - diagnostic
      - performance
      # - experimental
      # - opinionated
      # - style
    gocyclo:
      min-complexity: 99
    govet:
      disable:
      - fieldalignment
      - shadow
      enable-all: true
    misspell:
      locale: US
  # exclude some linters from running on certains files.
  exclusions:
    generated: lax
    presets:
    - comments
    - common-false-positives
    - legacy
    - std-error-handling
    rules:
    - linters:
      - paralleltest
      path: functional.*_test\.go
    - path: (.+)\.go$
      text: 'G115: integer overflow conversion'
    - path: (.+)\.go$
      text: 'G404: Use of weak random number generator'
    paths:
    - third_party$
    - builtin$
    - examples$
issues:
  # maximum count of issues with the same text. set to 0 for unlimited. default is 3.
  max-same-issues: 0
formatters:
  enable:
  - gofmt
  - goimports
  settings:
    goimports:
      local-prefixes:
      - github.com/IBM/sarama
  exclusions:
    generated: lax
    paths:
    - third_party$
    - builtin$
    - examples$