-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
87 lines (84 loc) · 1.62 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
run:
deadline: 5m
linters-settings:
errcheck:
check-type-assertions: true
check-blank: false
govet:
check-shadowing: true
gci:
sections:
- standard
- default
- prefix( github.com/behzadsh/go.localization)
- blank
- dot
godot:
capital: true
gofumpt:
extra-rules: true
revive:
enable-all-rules: true
rules:
- name: add-constant
disabled: true
- name: argument-limit
disabled: true
- name: banned-characters
disabled: true
- name: cognitive-complexity
disabled: true
- name: cyclomatic
disabled: true
- name: file-header
disabled: true
- name: function-length
disabled: true
- name: function-result-limit
arguments: [2]
- name: line-length-limit
disabled: false
arguments: [120]
- name: max-public-structs
disabled: true
- name: package-comments
disabled: true
- name: unhandled-error
arguments:
- "fmt.Printf"
- "fmt.Println"
- "fmt.Print"
misspell:
locale: US
ignore-words:
- behzadsh
nolintlint:
require-explanation: true
require-specific: true
gocyclo:
min-complexity: 15
gocognit:
min-complexity: 15
linters:
enable-all: false
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- errname
- gci
- gocyclo
- gocognit
- godot
- gofumpt
- gosec
- revive
- misspell
- prealloc
- unconvert
- nolintlint
issues:
exclude-use-default: false