tools: update golangci-lint to v2
The config file format changed. The tool golangci-lint migrate was used to migrate the old config. However old comments and also the structure of the disabled linters was preserved. Moreover the new v2 version introduced new linters, we disable 3 of them because they are very noise and we do not really want to check for them: funcorder, noinlineerr, embeddedstructfieldcheck.
This commit is contained in:
1 parent
f9dccd3e20
commit
13e7a6e782
5 files changed
+549
-463
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ RUN cd /tmp \
|
||||
&& mkdir -p /tmp/build/.cache \
|
||||
&& mkdir -p /tmp/build/.modcache \
|
||||
&& cd /tmp/tools \
|
||||
&& CGO_ENABLED=0 go tool github.com/golangci/golangci-lint/cmd/golangci-lint custom \
|
||||
&& CGO_ENABLED=0 go tool github.com/golangci/golangci-lint/v2/cmd/golangci-lint custom \
|
||||
&& mv ./custom-gcl /usr/local/bin/custom-gcl \
|
||||
&& chmod -R 777 /tmp/build/ \
|
||||
&& git config --global --add safe.directory /build
|
||||
|
||||
Reference in new issue
Block a user