-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy path.golangci.yml
86 lines (79 loc) · 2.12 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
run:
go: "1.23"
timeout: 1m
tests: false
issues:
include:
- "EXC0014" # Enable revive export rule with "should start with"
linters:
disable-all: false
enable:
- errcheck
- gci
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- unused
- usestdlibvars
- whitespace
- revive
- gocritic
linters-settings:
revive:
rules:
- name: blank-imports
- name: context-as-argument
arguments: ["allowTypesBefore": "*testing.T"]
- name: context-keys-type
- name: dot-imports
- name: empty-block
- name: error-naming
- name: error-return
- name: error-strings
- name: errorf
- name: exported
arguments: ["checkPrivateReceivers", "sayRepetitiveInsteadOfStutters"]
- name: increment-decrement
- name: indent-error-flow
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: superfluous-else
- name: time-naming
- name: unreachable-code
- name: var-declaration
# These ones are usually enabled by default
# but enabling them would require some work and further checks
# - name: unexported-return
# - name: unused-parameter
# - name: var-naming
gocritic:
enable-all: true
disabled-checks:
- appendAssign # this one is enabled by default usually, but it reports something that needs to be checked
- hugeParam # this one could be considered later
- rangeValCopy # this one should be considered later, but it requires some checks
- regexpSimplify # this one should be considered later, but it requires some checks
misspell:
locale: "US"
govet:
enable-all: true
disable:
- shadow
- fieldalignment
gofumpt:
extra-rules: true
staticcheck:
checks: ["all"]
gci:
sections:
# Standard section: captures all standard packages.
- standard
# Default section: catchall that is not standard or custom
- default
# linters that related to fuego, so they should be separated
- localmodule