File: .golangci.yml

package info (click to toggle)
gotestsum 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,076 kB
  • sloc: sh: 86; makefile: 18
file content (54 lines) | stat: -rw-r--r-- 1,044 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
linters-settings:
  gocyclo:
    min-complexity: 10
  goconst:
    min-len: 2
    min-occurrences: 4
  lll:
    line-length: 120

issues:
  exclude-use-default: false
  exclude-rules:
    - linters: [golint]
      text: 'should have comment .*or be unexported'
    - linters: [stylecheck]
      text: 'ST1000: at least one file in a package should have a package comment'
    - linters: [errcheck]
      path: log/
      text: 'Error return value of `out.WriteString` is not checked'
    - linters: [unparam]
      text: 'result .* is always'
    - linters: [unparam]
      text: 'always receives'

linters:
  disable-all: true
  enable:
    - bodyclose
    - deadcode
    - depguard
    - errcheck
    - gocognit
    - goconst
    - gocyclo
    - gofmt
    - goimports
    - golint
    - gosimple
    - govet
    - ineffassign
    - interfacer
    - lll
    - misspell
    - nakedret
    - prealloc
    - staticcheck
    - structcheck
    - stylecheck
    - typecheck
    - unconvert
    - unparam
    - unused
    - varcheck
    - whitespace