forked from supranational/blst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
94 lines (93 loc) · 2.11 KB
/
.golangci.yml
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
linters:
enable-all: true
disable:
# deprecated
#- deadcode
#- execinquery
#- exhaustivestruct
- exportloopref
#- golint
#- gomnd
#- ifshort
#- interfacer
#- maligned
#- nosnakecase
#- scopelint
#- structcheck
#- varcheck
# just whining
- copyloopvar # go>=1.22
- cyclop
- dupword
- forbidigo
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- gocritic
- gocyclo
- gofmt
- gofumpt
- goimports
- intrange # go>=1.22
- lll
- mnd
- nlreturn
- stylecheck
- varnamelen
- whitespace
- wsl
# auto-generation artefact
- dupl
# maybe some day...
- godox
- maintidx
# maybe some day in tests...
- forcetypeassert
- nonamedreturns
- perfsprint
- testpackage
# 78 active linters remaining including gosec, gosimple, govet, etc.
linters-settings:
revive:
enable-all-rules: true
rules:
- name: add-constant
disabled: true
- name: argument-limit
disabled: true
- name: cognitive-complexity # similar to 'gocognit' above
disabled: true
- name: cyclomatic # similar to 'cyclop' & 'gocyclo' above
disabled: true
- name: empty-block
disabled: true
- name: empty-lines
disabled: true
- name: flag-parameter
disabled: true
- name: function-length # similar to 'funlen' above
disabled: true
- name: function-result-limit
disabled: true
- name: increment-decrement
disabled: true
- name: line-length-limit # similar to 'lll' above
disabled: true
- name: max-public-structs
disabled: true
- name: receiver-naming
disabled: true
- name: var-naming
disabled: true
- name: unchecked-type-assertion # similar to 'forcetypeassert' above
disabled: true
- name: unexported-naming
disabled: true
- name: unhandled-error
arguments:
- "fmt.Println"
- "fmt.Printf"
- name: use-any # applicable to go>=1.18 only
disabled: true