File tree Expand file tree Collapse file tree 6 files changed +18
-28
lines changed
clients/algoliasearch-client-go
generators/src/main/java/com/algolia/codegen Expand file tree Collapse file tree 6 files changed +18
-28
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ runs:
128
128
if : ${{ inputs.language == 'go' }}
129
129
shell : bash
130
130
run : |
131
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
131
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.0
132
132
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
133
133
go install golang.org/x/tools/cmd/goimports@latest
134
134
Original file line number Diff line number Diff line change 1
1
linters-settings :
2
2
govet :
3
- check-shadowing : true
4
3
enable-all : true
5
4
disable :
6
5
- fieldalignment
7
6
8
7
revive :
9
- min-confidence : 0.8
10
8
rules :
11
9
- name : var-naming
12
10
disabled : true
@@ -54,20 +52,17 @@ linters:
54
52
- wastedassign
55
53
- gocyclo
56
54
- maintidx
55
+ - copyloopvar
56
+ - intrange
57
+ - canonicalheader
58
+ - mnd
59
+ - perfsprint
57
60
58
61
# Deprecated
59
- - deadcode
60
- - exhaustivestruct
61
- - golint
62
- - ifshort
63
- - interfacer
64
- - maligned
65
- - nosnakecase
66
- - scopelint
67
- - structcheck
68
- - varcheck
69
- service :
70
- golangci-lint-version : 1.55.2
62
+ - execinquery
63
+
64
+ issues :
65
+ exclude-generated : disable
71
66
72
67
run :
73
68
concurrency : 2
Original file line number Diff line number Diff line change @@ -36,14 +36,7 @@ public void processOpts() {
36
36
super .processOpts ();
37
37
38
38
// Generation notice, added on every generated files
39
- // The banner is custom for go because golangci-lint will not format generated files, and we
40
- // can't disable it
41
- // https://github.com/golangci/golangci-lint/blob/f921f000f8494e32d2d5d38939c999414bb6b7e1/pkg/result/processors/autogenerated_exclude.go#L77
42
- additionalProperties .put (
43
- "generationBanner" ,
44
- "File generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will" +
45
- " be lost - read more on https://github.com/algolia/api-clients-automation."
46
- );
39
+ Helpers .setGenerationBanner (additionalProperties );
47
40
48
41
apiTestTemplateFiles .clear ();
49
42
modelTestTemplateFiles .clear ();
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ RUN echo "export PATH=$PATH:/usr/local/bin/python" >> ~/.profile \
47
47
# Go
48
48
COPY --from=go-builder /usr/local/go/ /usr/local/go/
49
49
RUN echo "export PATH=$PATH:/usr/local/go/bin:/root/go/bin" >> ~/.profile && source ~/.profile \
50
- && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 \
50
+ && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.0 \
51
51
&& go install golang.org/x/tools/cmd/goimports@latest
52
52
53
53
Original file line number Diff line number Diff line change 2
2
disable :
3
3
- ineffassign
4
4
- staticcheck
5
- service :
6
- golangci-lint-version : 1.55.2
5
+
6
+ issues :
7
+ exclude-generated : disable
7
8
8
9
run :
9
10
concurrency : 2
Original file line number Diff line number Diff line change 2
2
disable :
3
3
- ineffassign
4
4
- staticcheck
5
- service :
6
- golangci-lint-version : 1.55.2
5
+
6
+ issues :
7
+ exclude-generated : disable
7
8
8
9
run :
9
10
concurrency : 2
You can’t perform that action at this time.
0 commit comments