-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.golangci.yml
84 lines (80 loc) · 1.84 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
---
run:
issues-exit-code: 1
modules-download-mode: readonly
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- stylecheck
- typecheck
- unused
- varcheck
- errorlint
- gofumpt
- goimports
- godox
- ifshort
- misspell
- prealloc
- unconvert
- revive
fast: false
linters-settings:
goimports:
local-prefixes: github.com/andrewkroh/gvm
gofumpt:
extra-rules: true
revive:
enable-all-rules: false
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md
rules:
- name: bare-return
- name: call-to-gc
- name: confusing-results
- name: constant-logical-expr
- name: context-as-argument
- name: deep-exit
- name: defer
- name: duplicated-imports
- name: early-return
- name: empty-block
- name: error-strings
- name: errorf
- name: exported
arguments:
- checkPrivateReceivers
- name: imports-blacklist
arguments:
- github.com/pkg/errors
- name: increment-decrement
- name: range
- name: range-val-address
- name: range-val-in-closure
- name: receiver-naming
- name: struct-tag
- name: time-naming
- name: unconditional-recursion
- name: unexported-naming
- name: unexported-return
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: unused-receiver
- name: var-declaration
- name: waitgroup-by-value
stylecheck:
checks:
- all
issues:
include:
# If you're going to write a comment follow the conventions.
# https://go.dev/doc/effective_go#commentary.
# comment on exported (.+) should be of the form "(.+)..."
- EXC0014