.golangci.yaml 733 Bytes
Newer Older
mashun1's avatar
v1  
mashun1 committed
1
2
3
4
5
6
7
8
9
run:
  timeout: 5m
linters:
  enable:
    - asasalint
    - bidichk
    - bodyclose
    - containedctx
    - contextcheck
xuxzh1's avatar
init  
xuxzh1 committed
10
    - errcheck
mashun1's avatar
v1  
mashun1 committed
11
    - exportloopref
xuxzh1's avatar
init  
xuxzh1 committed
12
    - gci
mashun1's avatar
v1  
mashun1 committed
13
    - gocheckcompilerdirectives
xuxzh1's avatar
init  
xuxzh1 committed
14
15
16
17
18
19
20
    - gofmt
    - gofumpt
    - gosimple
    - govet
    - ineffassign
    - intrange
    - makezero
mashun1's avatar
v1  
mashun1 committed
21
22
    - misspell
    - nilerr
xuxzh1's avatar
init  
xuxzh1 committed
23
24
25
26
27
28
    - nolintlint
    - nosprintfhostport
    - staticcheck
    - tenv
    - testifylint
    - unconvert
mashun1's avatar
v1  
mashun1 committed
29
    - unused
xuxzh1's avatar
init  
xuxzh1 committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    - usestdlibvars
    - wastedassign
    - whitespace
linters-settings:
  gci:
    sections: [standard, default, localmodule]
severity:
  default-severity: error
  rules:
    - linters:
        - gofmt
        - goimports
        - intrange
        - usestdlibvars
      severity: info