Skip to content

Commit 395ef8a

Browse files
committed
WIP
Signed-off-by: Joseph Kato <joseph@jdkato.io>
1 parent d690bb6 commit 395ef8a

File tree

2 files changed

+110
-3
lines changed

2 files changed

+110
-3
lines changed

.golangci.bck.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
run:
2+
timeout: 3m
3+
go: "1.23"
4+
5+
# This file contains only configs which differ from defaults.
6+
# All possible options can be found here https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
7+
linters-settings:
8+
cyclop:
9+
max-complexity: 30
10+
package-average: 10.0
11+
12+
errcheck:
13+
check-type-assertions: true
14+
15+
gocritic:
16+
settings:
17+
captLocal:
18+
paramsOnly: false
19+
underef:
20+
skipRecvDeref: false
21+
22+
gomodguard:
23+
blocked:
24+
modules:
25+
- github.com/golang/protobuf:
26+
recommendations:
27+
- google.golang.org/protobuf
28+
reason: "see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules"
29+
- github.com/satori/go.uuid:
30+
recommendations:
31+
- github.com/google/uuid
32+
reason: "satori's package is not maintained"
33+
- github.com/gofrs/uuid:
34+
recommendations:
35+
- github.com/google/uuid
36+
reason: "see recommendation from dev-infra team: https://confluence.gtforge.com/x/gQI6Aw"
37+
38+
govet:
39+
enable-all: true
40+
disable:
41+
- fieldalignment
42+
43+
settings:
44+
shadow:
45+
strict: true
46+
47+
nakedret:
48+
max-func-lines: 0
49+
50+
nolintlint:
51+
allow-no-explanation: [funlen, gocognit, lll]
52+
require-explanation: false
53+
require-specific: true
54+
55+
rowserrcheck:
56+
packages:
57+
- github.com/jmoiron/sqlx
58+
59+
tenv:
60+
all: true
61+
62+
linters:
63+
disable-all: true
64+
enable:
65+
- errcheck
66+
- gosimple
67+
- govet
68+
- ineffassign
69+
- staticcheck
70+
- typecheck
71+
- unused
72+
- asciicheck
73+
- bidichk
74+
- bodyclose
75+
- contextcheck
76+
- dupl
77+
- dupword
78+
- durationcheck
79+
- errname
80+
- errorlint
81+
- exhaustive
82+
- gocritic
83+
- goimports
84+
- gomoddirectives
85+
- gomodguard
86+
- goprintffuncname
87+
- gosec
88+
- makezero
89+
- mirror
90+
- nakedret
91+
- nilerr
92+
- nilnil
93+
- noctx
94+
- nolintlint
95+
- nonamedreturns
96+
- nosprintfhostport
97+
- predeclared
98+
- promlinter
99+
- revive
100+
- rowserrcheck
101+
- sqlclosecheck
102+
- stylecheck
103+
- tenv
104+
- thelper
105+
- tparallel
106+
- unconvert
107+
- unparam
108+
- usestdlibvars
109+
- wastedassign
110+
- whitespace

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ linters:
1111
- dupl
1212
- dupword
1313
- durationcheck
14-
- errcheck
1514
- errname
1615
- errorlint
1716
- exhaustive
@@ -27,7 +26,6 @@ linters:
2726
- nakedret
2827
- nilerr
2928
- nilnil
30-
- noctx
3129
- nolintlint
3230
- nonamedreturns
3331
- nosprintfhostport
@@ -36,7 +34,6 @@ linters:
3634
- revive
3735
- rowserrcheck
3836
- sqlclosecheck
39-
- staticcheck
4037
- thelper
4138
- tparallel
4239
- unconvert

0 commit comments

Comments
 (0)