-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy path.golangci.yml
More file actions
54 lines (54 loc) · 1.38 KB
/
.golangci.yml
File metadata and controls
54 lines (54 loc) · 1.38 KB
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
version: "2"
linters:
enable:
- godot
- misspell
- revive
- whitespace
settings:
errcheck:
exclude-functions:
- (*os.File).Close
revive:
rules:
- name: unchecked-type-assertion
arguments:
- acceptIgnoredAssertionResult: true
- name: early-return
- name: redundant-import-alias
- name: redefines-builtin-id
- name: struct-tag
- name: receiver-naming
- name: deep-exit
- name: bool-literal-in-expr
- name: comment-spacings
- name: confusing-results
- name: use-any
- name: bare-return
- name: empty-block
- name: range-val-address
- name: range-val-in-closure
- name: var-declaration
- name: useless-break
- name: error-naming
- name: indent-error-flow
- name: datarace
- name: modifies-value-receiver
- name: empty-lines
- name: duplicated-imports
- name: error-return
staticcheck:
checks:
- all
- -ST1000 # Package comment should be of the form "Package provider...".
- -ST1003 # Should not use underscores in Go names.
- -ST1005 # Error strings should not be capitalized or end with a new line.
formatters:
enable:
- gci
- gofmt
settings:
gci:
sections:
- standard
- default