Skip to content

Commit d743512

Browse files
algolia-botmillotp
andcommitted
fix(clients): upgrade linter (generated)
algolia/api-clients-automation#5476 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
1 parent ec2c70e commit d743512

File tree

717 files changed

+17232
-1926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

717 files changed

+17232
-1926
lines changed

.golangci.yml

Lines changed: 49 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,60 @@
1-
linters-settings:
2-
govet:
3-
enable-all: true
4-
disable:
5-
- fieldalignment
6-
7-
revive:
8-
rules:
9-
- name: var-naming
10-
disabled: true
11-
1+
version: "2"
2+
run:
3+
concurrency: 2
124
linters:
13-
enable-all: true
14-
5+
default: all
156
disable:
16-
- godox
17-
- bodyclose
18-
- contextcheck
19-
- interfacebloat
20-
- gci
21-
- gosmopolitan
22-
- wsl
23-
- varnamelen
24-
- nlreturn
7+
- canonicalheader
8+
- containedctx
9+
- copyloopvar
10+
- cyclop
11+
- depguard
12+
- dupl
13+
- dupword
2514
- err113
26-
- gochecknoglobals
27-
- exhaustruct
2815
- exhaustive
29-
- depguard
30-
- lll
16+
- exhaustruct
3117
- forbidigo
32-
- gochecknoinits
33-
- cyclop
34-
- errorlint
35-
- gomnd
36-
- tagliatelle
37-
- nilnil
38-
- stylecheck
39-
- musttag
40-
- errchkjson
41-
- nonamedreturns
42-
- inamedparam
43-
- ineffassign
44-
- dupword
45-
- nestif
46-
- goconst
4718
- funlen
48-
- dupl
49-
- unparam
19+
- gochecknoglobals
5020
- gocognit
51-
- forcetypeassert
52-
- wastedassign
21+
- goconst
5322
- gocyclo
54-
- maintidx
55-
- copyloopvar
23+
- godoclint
24+
- inamedparam
5625
- intrange
57-
- canonicalheader
26+
- lll
27+
- maintidx
5828
- mnd
29+
- nestif
30+
- nilnil
31+
- nonamedreturns
5932
- perfsprint
60-
- containedctx
61-
62-
# Deprecated
63-
- execinquery
64-
- exportloopref
65-
66-
issues:
67-
exclude-generated: disable
68-
69-
run:
70-
concurrency: 2
71-
timeout: 10m
33+
- recvcheck
34+
- tagliatelle
35+
- varnamelen
36+
- wsl
37+
settings:
38+
govet:
39+
enable-all: true
40+
disable:
41+
- fieldalignment
42+
revive:
43+
rules:
44+
- name: var-naming
45+
disabled: true
46+
staticcheck:
47+
checks: ["all", "-ST1005", "-ST1016"]
48+
exclusions:
49+
generated: disable
50+
presets:
51+
- comments
52+
- std-error-handling
53+
formatters:
54+
enable:
55+
- gofmt
56+
- gofumpt
57+
- golines
58+
settings:
59+
golines:
60+
max-len: 150

0 commit comments

Comments
 (0)