golangci: bring back the unused linter (#13826)
https://github.com/golangci/golangci-lint/issues/885 is fixed wth 1.23.3. We can now bring back unused.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bd9d674006
Коммит
bd487418f7
@@ -67,7 +67,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
echo "Installing golangci-lint"
|
echo "Installing golangci-lint"
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.23.0 # Keep this in sync with .golangci.yml and Jenkinsfile.pr
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.23.3 # Keep this in sync with .golangci.yml and Jenkinsfile.pr
|
||||||
echo "Installing mattermost-govet"
|
echo "Installing mattermost-govet"
|
||||||
export GOBIN=${PWD}/mattermost-server/bin
|
export GOBIN=${PWD}/mattermost-server/bin
|
||||||
GO111MODULE=off go get -u github.com/mattermost/mattermost-govet
|
GO111MODULE=off go get -u github.com/mattermost/mattermost-govet
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
service:
|
service:
|
||||||
golangci-lint-version: 1.23.0 # Keep this in sync with .circleci/config.yml and Jenkinsfile.pr
|
golangci-lint-version: 1.23.3 # Keep this in sync with .circleci/config.yml and Jenkinsfile.pr
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
@@ -25,7 +25,7 @@ linters:
|
|||||||
- ineffassign
|
- ineffassign
|
||||||
- structcheck
|
- structcheck
|
||||||
- unconvert
|
- unconvert
|
||||||
# - unused Disable until https://github.com/golangci/golangci-lint/issues/885 is fixed
|
- unused
|
||||||
- varcheck
|
- varcheck
|
||||||
# TODO: enable this later
|
# TODO: enable this later
|
||||||
# - errcheck
|
# - errcheck
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ pipeline {
|
|||||||
sh """
|
sh """
|
||||||
cd /go/src/github.com/mattermost/mattermost-server
|
cd /go/src/github.com/mattermost/mattermost-server
|
||||||
echo "Installing golangci-lint"
|
echo "Installing golangci-lint"
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.23.0 # Keep this in sync with .golangci.yml and .circleci/config.yml
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.23.3 # Keep this in sync with .golangci.yml and .circleci/config.yml
|
||||||
echo "Installing mattermost-govet"
|
echo "Installing mattermost-govet"
|
||||||
GO111MODULE=off go get -u github.com/mattermost/mattermost-govet
|
GO111MODULE=off go get -u github.com/mattermost/mattermost-govet
|
||||||
export PATH=$PATH:$GOBIN
|
export PATH=$PATH:$GOBIN
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user